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

Unified Diff: tests/language_2/bad_constructor_test.dart

Issue 2990933002: Migrate block 43. (Closed)
Patch Set: Update tests and status file. Created 3 years, 5 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/language_dart2js.status ('k') | tests/language_2/bad_initializer1_negative_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/language_2/bad_constructor_test.dart
diff --git a/tests/language/bad_constructor_test.dart b/tests/language_2/bad_constructor_test.dart
similarity index 86%
rename from tests/language/bad_constructor_test.dart
rename to tests/language_2/bad_constructor_test.dart
index 28a61fe196a57e674a6498936d18f5081e97c7c6..933364dee4a572593d40b15debe10b13a0dd2d2d 100644
--- a/tests/language/bad_constructor_test.dart
+++ b/tests/language_2/bad_constructor_test.dart
@@ -16,8 +16,8 @@ class A {
set q(var value) {
m = 0;
} // No name conflict with q=.
- A.q(); // //# 05: ok
- A(); // //# 05: ok
+ // The error occurs because main calls new A() instead of new A.q().
+ A.q(); // //# 05: compile-time error
A.foo() : m = 0; // //# 06: compile-time error
int foo(int a, int b) => a + b * m;
« no previous file with comments | « tests/language/language_dart2js.status ('k') | tests/language_2/bad_initializer1_negative_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698