5c2b86897c
Fixes #38803 Change-Id: I2fe7817aa0311c2370222a3205f1a1e02dc9aba4 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/121120 Reviewed-by: Brian Wilkerson <brianwilkerson@google.com> Reviewed-by: Johnni Winther <johnniwinther@google.com> Commit-Queue: Jens Johansen <jensj@google.com>
27 lines
282 B
Dart
27 lines
282 B
Dart
main() {
|
|
dynamic foo = new X();
|
|
var bar = foo.late;
|
|
late();
|
|
bar();
|
|
new X().late();
|
|
new Y().late;
|
|
|
|
// And now the late modifiers
|
|
late int foo;
|
|
foo = 42;
|
|
}
|
|
|
|
late() {
|
|
print("hello");
|
|
}
|
|
|
|
class X {
|
|
late() {
|
|
print("hello");
|
|
}
|
|
}
|
|
|
|
class Y {
|
|
int late = 42;
|
|
}
|