Index: tests/language_2/getters_setters2_test.dart |
diff --git a/tests/language/getters_setters2_test.dart b/tests/language_2/getters_setters2_test.dart |
similarity index 92% |
rename from tests/language/getters_setters2_test.dart |
rename to tests/language_2/getters_setters2_test.dart |
index 469e5b3183e3dab5a7d054a8d999541616a62ac5..8249f623c7b4cb9e3dde1b41114abea450077943 100644 |
--- a/tests/language/getters_setters2_test.dart |
+++ b/tests/language_2/getters_setters2_test.dart |
@@ -62,7 +62,7 @@ main() { |
instance1.field = new B(); |
A resultA = instance1.field; |
- instance1.field = new A(); //# 03: dynamic type error |
+ Expect.throwsTypeError(() => instance1.field = new A() as dynamic); |
B resultB = instance1.field; |
int result; |
@@ -70,7 +70,7 @@ main() { |
Expect.equals(37, result); |
// Type 'A' has no method named 'b' |
- instance1.field.b(); //# 02: static type warning |
+ instance1.field.b(); //# 02: compile-time error |
instance3.field = new B(); |
result = instance3.field.a(); |