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

Unified Diff: tests/language_2/getters_setters2_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_setter_order_test.dart ('k') | tests/language_2/getters_setters_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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();
« no previous file with comments | « tests/language_2/getter_setter_order_test.dart ('k') | tests/language_2/getters_setters_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698