734c01da41
This reports an error on assignment to primary constructor parameters in field initializers and initializer lists. The change includes a rewrite of the handle of variable lookup and use that fixes and existing problem in pattern assignment, where it was until now possible to assign to const and final variable in some cases. Part of #61700 Change-Id: Icfe566fd03b805e8fc21c4b373dbb8ab3dab4b7a Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/484141 Reviewed-by: Konstantin Shcheglov <scheglov@google.com> Commit-Queue: Johnni Winther <johnniwinther@google.com>
7 lines
122 B
Plaintext
7 lines
122 B
Plaintext
library;
|
|
import self as self;
|
|
import "dart:core" as core;
|
|
|
|
static method method((core::int, core::int) r) → dynamic
|
|
;
|