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

Unified Diff: tests/language_strong/constructor_duplicate_final_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_strong/constructor_duplicate_final_test.dart
diff --git a/tests/language_strong/constructor_duplicate_final_test.dart b/tests/language_strong/constructor_duplicate_final_test.dart
index 8f977b6fbe5f66c3066765c32af42bca34fce62d..93442b93d401c12454944ea5df4e289f5dcf7252 100644
--- a/tests/language_strong/constructor_duplicate_final_test.dart
+++ b/tests/language_strong/constructor_duplicate_final_test.dart
@@ -8,17 +8,17 @@
class Class {
final f = 10;
- Class(v) : f = v; /// 01: runtime error, static type warning
+ Class(v) : f = v; //# 01: runtime error, static type warning
- Class(this.f); /// 02: runtime error, static type warning
+ Class(this.f); //# 02: runtime error, static type warning
// If a field is initialized multiple times in the initializer
// list, it's a compile time error.
- Class(this.f) : f = 0; /// 03: compile-time error
+ Class(this.f) : f = 0; //# 03: compile-time error
}
main() {
- new Class(5); /// 01: continued
- new Class(5); /// 02: continued
- new Class(5); /// 03: continued
+ new Class(5); //# 01: continued
+ new Class(5); //# 02: continued
+ new Class(5); //# 03: continued
}

Powered by Google App Engine
This is Rietveld 408576698