blob: 3b310db67cf98ef4d4bee1bbe16e484596079e6b [file] [log] [blame]
// 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.
class A {
static int a;
A();
static foo() {
// Make sure 'A' is not resolved to the constructor.
return A.a;
}
}
main() {
A.a = 42;
Expect.equals(42, A.foo());
}