Index: tests/language_2/getter_no_setter2_test.dart |
diff --git a/tests/language_strong/getter_no_setter2_test.dart b/tests/language_2/getter_no_setter2_test.dart |
similarity index 60% |
rename from tests/language_strong/getter_no_setter2_test.dart |
rename to tests/language_2/getter_no_setter2_test.dart |
index 199b8e0c2286de3888663215651f4110d0f011df..b974031bc325ca634446bc378117d953a8c57205 100644 |
--- a/tests/language_strong/getter_no_setter2_test.dart |
+++ b/tests/language_2/getter_no_setter2_test.dart |
@@ -9,27 +9,11 @@ class Example { |
static int _var = 1; |
static int get nextVar => _var++; |
Example() { |
- { |
- bool flag_exception = false; |
- try { |
- nextVar++; // //# 03: static type warning |
- } catch (excpt) { |
- flag_exception = true; |
- } |
- Expect.isTrue(flag_exception); // //# 03: continued |
- } |
- { |
- bool flag_exception = false; |
- try { |
- this.nextVar++; // //# 00: static type warning |
- } catch (excpt) { |
- flag_exception = true; |
- } |
- Expect.isTrue(flag_exception); // //# 00: continued |
- } |
+ nextVar++; //# 03: compile-time error |
+ this.nextVar++; //# 00: compile-time error |
} |
static test() { |
- nextVar++; // //# 01: runtime error |
+ nextVar++; // //# 01: compile-time error |
this.nextVar++; // //# 02: compile-time error |
} |
} |