Index: tests/language_2/unbound_getter_test.dart |
diff --git a/tests/language_strong/unresolved_in_factory_negative_test.dart b/tests/language_2/unbound_getter_test.dart |
similarity index 61% |
rename from tests/language_strong/unresolved_in_factory_negative_test.dart |
rename to tests/language_2/unbound_getter_test.dart |
index 8166ac8f510bf5356ed452ec5ea23d2879116826..8eb2120995a3ad9402f939b0c7ee201603d3afa6 100644 |
--- a/tests/language_strong/unresolved_in_factory_negative_test.dart |
+++ b/tests/language_2/unbound_getter_test.dart |
@@ -1,16 +1,15 @@ |
// 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 an unresolved method call in a factory is a resolution |
-// error. |
+// Verify that an unbound getter is properly resolved at runtime. |
class A { |
- factory A() { |
- foo(); |
+ const A(); |
+ foo() { |
+ return y; /*@compile-error=unspecified*/ |
} |
} |
main() { |
- new A(); |
+ new A().foo(); |
} |