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

Unified Diff: tests/language/missing_const_constructor_test.dart

Issue 2765693002: Update all tests (Closed)
Patch Set: Created 3 years, 9 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
Index: tests/language/missing_const_constructor_test.dart
diff --git a/tests/language/missing_const_constructor_test.dart b/tests/language/missing_const_constructor_test.dart
index 14b18d7b66879d16164f05c6dfdeb2b9db504d93..166c529099e6d43751456872bc12cffd5e952eff 100644
--- a/tests/language/missing_const_constructor_test.dart
+++ b/tests/language/missing_const_constructor_test.dart
@@ -9,21 +9,21 @@ class GoodClass {
}
GoodClass GOOD_CLASS
- = const GoodClass() /// 01: ok
- = const GoodClass.BAD_NAME() /// 02: compile-time error
- = const GoodClass("bad arg") /// 03: compile-time error
+ = const GoodClass() //# 01: ok
+ = const GoodClass.BAD_NAME() //# 02: compile-time error
+ = const GoodClass("bad arg") //# 03: compile-time error
;
-const BadClass BAD_CLASS = const BadClass(); /// 04: compile-time error
-BadClass BAD_CLASS = const BadClass(); /// 05: compile-time error
+const BadClass BAD_CLASS = const BadClass(); //# 04: compile-time error
+BadClass BAD_CLASS = const BadClass(); //# 05: compile-time error
void main() {
try {
print(GOOD_CLASS);
- print(BAD_CLASS); /// 04: continued
- print(BAD_CLASS); /// 05: continued
- print(const BadClass()); /// 06: compile-time error
+ print(BAD_CLASS); //# 04: continued
+ print(BAD_CLASS); //# 05: continued
+ print(const BadClass()); //# 06: compile-time error
} catch (e) {
}

Powered by Google App Engine
This is Rietveld 408576698