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

Unified Diff: tests/language_strong/const_constructor_super_test.dart

Issue 2770063002: Revert "Format all multitests" (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/const_constructor_super_test.dart
diff --git a/tests/language_strong/const_constructor_super_test.dart b/tests/language_strong/const_constructor_super_test.dart
index b8bb9e206291644c6442f60f933f4671ead6cc0f..2b5adb30418aebe4a9eb155840129fa844074085 100644
--- a/tests/language_strong/const_constructor_super_test.dart
+++ b/tests/language_strong/const_constructor_super_test.dart
@@ -6,15 +6,13 @@ import "package:expect/expect.dart";
class A {
final a;
- A(this.a); // Not const.
+ A(this.a); // Not const.
const A.five() : a = 5;
}
class B extends A {
final b;
- B(x)
- : b = x + 1,
- super(x);
+ B(x) : b = x + 1, super(x);
// Const constructor cannot call non-const super constructor.
const B.zerofive() : b = 0, super(5); // //# 01: compile-time error
« no previous file with comments | « tests/language_strong/const_constructor_nonconst_field_test.dart ('k') | tests/language_strong/const_init2_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698