Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1573)

Unified Diff: tests/language_2/getter_no_setter2_test.dart

Issue 3005643002: Migrate block 115. (Closed)
Patch Set: Tweak status files. Created 3 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tests/language_2/getter_declaration_negative_test.dart ('k') | tests/language_2/getter_no_setter_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
}
}
« no previous file with comments | « tests/language_2/getter_declaration_negative_test.dart ('k') | tests/language_2/getter_no_setter_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698