blob: 127f33bc4507d7b00b0cd8049990252a0ff6e94d [file] [log] [blame]
// 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() {}