70b02ea06d
Fixes https://github.com/dart-lang/sdk/issues/35651 Change-Id: I80c07453cae3e4901785db65546a396bc99c3183 Reviewed-on: https://dart-review.googlesource.com/c/89515 Reviewed-by: Dmitry Stefantsov <dmitryas@google.com> Commit-Queue: Dmitry Stefantsov <dmitryas@google.com> Auto-Submit: Peter von der Ahé <ahe@google.com>
51 lines
1.2 KiB
Dart
51 lines
1.2 KiB
Dart
// Copyright (c) 2018, the Dart project authors. Please see the AUTHORS file
|
|
// for details. All rights reserved. Use of this source code is governed by a
|
|
// BSD-style license that can be found in the LICENSE.md file.
|
|
|
|
bool topLevelField;
|
|
var untypedTopLevelField;
|
|
|
|
class Super {
|
|
int superInstanceField;
|
|
var untypedSuperInstanceField;
|
|
}
|
|
|
|
class C extends Super {
|
|
int instanceField;
|
|
var untypedInstanceField;
|
|
|
|
static double staticField;
|
|
|
|
static var untypedStaticField;
|
|
|
|
m() {
|
|
String local;
|
|
var untypedLocal;
|
|
for (local in []) {}
|
|
for (untypedLocal in []) {}
|
|
for (instanceField in []) {}
|
|
for (untypedInstanceField in []) {}
|
|
for (staticField in []) {}
|
|
for (untypedStaticField in []) {}
|
|
for (topLevelField in []) {}
|
|
for (untypedTopLevelField in []) {}
|
|
for (super.superInstanceField in []) {}
|
|
for (super.untypedSuperInstanceField in []) {}
|
|
C c = new C();
|
|
for (c.instanceField in []) {}
|
|
for (c.untypedSuperInstanceField in []) {}
|
|
for (unresolved in []) {}
|
|
for (unresolved.foo in []) {}
|
|
for (c.unresolved in []) {}
|
|
for (main() in []) {}
|
|
for (var x, y in <int>[]) {
|
|
print(x);
|
|
print(y);
|
|
}
|
|
const int constant = 0;
|
|
for (constant in []) {}
|
|
}
|
|
}
|
|
|
|
main() {}
|