Index: tests/language_2/getter_no_setter_test.dart |
diff --git a/tests/language/getter_no_setter_test.dart b/tests/language_2/getter_no_setter_test.dart |
similarity index 57% |
rename from tests/language/getter_no_setter_test.dart |
rename to tests/language_2/getter_no_setter_test.dart |
index 3218457dc60c2f33e57a1f215df9f634fd227765..a641589676dd1eaad7bd492f3f1d6d6220a2d9bc 100644 |
--- a/tests/language/getter_no_setter_test.dart |
+++ b/tests/language_2/getter_no_setter_test.dart |
@@ -9,28 +9,12 @@ class Example { |
static int _var = 1; |
static int get nextVar => _var++; |
Example() { |
- { |
- bool flag_exception = false; |
- try { |
- nextVar = 1; // Equivalent to this.nextVar = 1. |
- } catch (excpt) { |
- flag_exception = true; |
- } |
- Expect.isTrue(flag_exception); |
- } |
- { |
- bool flag_exception = false; |
- try { |
- this.nextVar = 1; // //# 00: static type warning |
- } catch (excpt) { |
- flag_exception = true; |
- } |
- Expect.isTrue(flag_exception); // //# 00: continued |
- } |
+ nextVar = 1; //# 03: compile-time error |
+ this.nextVar = 1; //# 00: compile-time error |
} |
static test() { |
- nextVar = 0; // //# 01: runtime error |
- this.nextVar = 0; // //# 02: compile-time error |
+ nextVar = 0; //# 01: compile-time error |
+ this.nextVar = 0; //# 02: compile-time error |
} |
} |