-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit ee951bc
[analyzer] Dot shorthands: Error when calling an instance method using a shorthand.
Fixes an analyzer bug where if we are using a dot shorthand to invoke an instance method, it doesn't produce any errors.
We were neglecting to check whether the element is static or not.
Bug: #61954
Change-Id: I3bc7c3656c7fc1f3cfe4c7751bd40e5613926d1f
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/461900
Reviewed-by: Paul Berry <paulberry@google.com>
Commit-Queue: Kallen Tu <kallentu@google.com>1 parent a16f481 commit ee951bc
File tree
3 files changed
+35
-1
lines changed- pkg/analyzer
- lib/src/dart/resolver
- test/src/dart/resolution
- tests/language/dot_shorthands/member
3 files changed
+35
-1
lines changedLines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1245 | 1245 | | |
1246 | 1246 | | |
1247 | 1247 | | |
1248 | - | ||
1248 | + | ||
1249 | 1249 | | |
1250 | 1250 | | |
1251 | 1251 | | |
| |||
Lines changed: 16 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
396 | 396 | | |
397 | 397 | | |
398 | 398 | | |
399 | + | ||
400 | + | ||
401 | + | ||
402 | + | ||
403 | + | ||
404 | + | ||
405 | + | ||
406 | + | ||
407 | + | ||
408 | + | ||
409 | + | ||
410 | + | ||
411 | + | ||
412 | + | ||
413 | + | ||
414 | + | ||
399 | 415 | | |
400 | 416 | | |
401 | 417 | | |
| |||
Lines changed: 18 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | + | ||
2 | + | ||
3 | + | ||
4 | + | ||
5 | + | ||
6 | + | ||
7 | + | ||
8 | + | ||
9 | + | ||
10 | + | ||
11 | + | ||
12 | + | ||
13 | + | ||
14 | + | ||
15 | + | ||
16 | + | ||
17 | + | ||
18 | + | ||
0 commit comments