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

Unified Diff: tests/language/bad_constructor_test.dart

Issue 2643693002: Fix language/bad_constructor_test in dartk and analyzer. (Closed)
Patch Set: Remove extra blank line Created 3 years, 11 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 | « pkg/kernel/lib/analyzer/ast_from_analyzer.dart ('k') | tests/language/language_analyzer2.status » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/language/bad_constructor_test.dart
diff --git a/tests/language/bad_constructor_test.dart b/tests/language/bad_constructor_test.dart
index 02ac4e5baa1b642ad72b20d0908d9708cfe76e47..4c0b17eea455431c942bfbee5bddec90d4650ef0 100644
--- a/tests/language/bad_constructor_test.dart
+++ b/tests/language/bad_constructor_test.dart
@@ -13,9 +13,9 @@ class A {
var m;
A.m() { m = 0; } /// 04: compile-time error
- set q(var value) { m = q; } // No name conflict with q=.
- // The runtime error occurs because main calls new A() instead of new A.q().
- A.q(); /// 05: runtime error
+ set q(var value) { m = 0; } // No name conflict with q=.
+ A.q(); /// 05: ok
+ A(); /// 05: ok
A.foo() : m = 0; /// 06: compile-time error
int foo(int a, int b) => a + b * m;
« no previous file with comments | « pkg/kernel/lib/analyzer/ast_from_analyzer.dart ('k') | tests/language/language_analyzer2.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698