Index: tests/language_strong/abstract_method_test.dart |
diff --git a/tests/language_strong/abstract_method_test.dart b/tests/language_strong/abstract_method_test.dart |
index a89694e4cdc4a0037ef633b21fb893aa97e7f76b..05370d28d31f8fd4e4d061541a152250f1d27c5e 100644 |
--- a/tests/language_strong/abstract_method_test.dart |
+++ b/tests/language_strong/abstract_method_test.dart |
@@ -7,8 +7,13 @@ import "package:expect/expect.dart"; |
// Checks that abstract instance methods are correctly resolved. |
int get length => throw "error: top-level getter called"; |
-set height(x) { throw "error: top-level setter called"; } |
-width() { throw "error: top-level function called"; } |
+set height(x) { |
+ throw "error: top-level setter called"; |
+} |
+ |
+width() { |
+ throw "error: top-level function called"; |
+} |
abstract class A { |
int get length; // Abstract instance getter. |
@@ -24,8 +29,8 @@ abstract class A { |
} |
class A1 extends A { |
- int length; // Implies a length getter. |
- int height; // Implies a height setter. |
+ int length; // Implies a length getter. |
+ int height; // Implies a height setter. |
int width() => 345; |
A1(this.length); |
} |
@@ -38,4 +43,3 @@ main() { |
Expect.equals(345, a.useWidth()); |
print([a.useLength, a.height, a.useWidth()]); |
} |
- |