blob: e3b91c9d9206a0628b3c7b11c23ae92e7dc93f57 [file] [log] [blame]
// Copyright (c) 2017, 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 file.
// @dart=2.9
/*@testedFeatures=checks*/
library test;
var topLevel;
void set topLevelSetter(x) {}
class C {
static var staticField;
static void set staticSetter(x) {}
var instanceField;
void set instanceSetter(x) {}
void test() {
var localVar;
for (topLevel in []) {}
for (topLevelSetter in []) {}
for (staticField in []) {}
for (staticSetter in []) {}
for (instanceField in []) {}
for (instanceSetter in []) {}
for (localVar in []) {}
}
}
main() {}