blob: 1f6b79869f4ab4b0b2f5350e3fad8d9690a608ce [file] [log] [blame]
// TODO(multitest): This was automatically migrated from a multitest and may
// contain strange or dead code.
// Copyright (c) 2011, 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.
// Test that a static method cannot be read as an instance field.
class Foo {
Foo() {}
static void m() {}
}
class StaticField1aTest {
static testMain() {
if (false) {
var foo = new Foo();
}
}
}
main() {
StaticField1aTest.testMain();
}