blob: ff65d20654530e198d30621434db8f6da69d48e6 [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.
import "package:expect/expect.dart";
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());
}