Index: tests/language/no_such_method_dispatcher_test.dart |
diff --git a/tests/language/no_such_method_dispatcher_test.dart b/tests/language/no_such_method_dispatcher_test.dart |
index 3aad16f36ffd200bd116af55668a86814284a918..4e1836378edaa6573e3f862da60bd28ba84209e7 100644 |
--- a/tests/language/no_such_method_dispatcher_test.dart |
+++ b/tests/language/no_such_method_dispatcher_test.dart |
@@ -11,10 +11,11 @@ class A { |
noSuchMethod(m) { |
return 123; |
} |
+ |
bar(x) => x + 1; |
} |
-class B extends A { } |
+class B extends A {} |
class C { |
C(this.pos, this.named, this.posArgs, this.namedArgs); |
@@ -30,6 +31,7 @@ class C { |
} |
return 123; |
} |
+ |
List posArgs; |
Map namedArgs; |
} |
@@ -48,15 +50,14 @@ main() { |
} |
for (var i = 0; i < 20; ++i) { |
- Expect.equals(123, b.bar(1,2,3)); |
- Expect.equals(123, b.bar(1,2,foo:3)); |
+ Expect.equals(123, b.bar(1, 2, 3)); |
+ Expect.equals(123, b.bar(1, 2, foo: 3)); |
} |
// Test named and positional arguments. |
- var c = new C(1, 2, [100], {"n1":101, "n2":102}); |
+ var c = new C(1, 2, [100], {"n1": 101, "n2": 102}); |
for (var i = 0; i < 20; ++i) { |
- Expect.equals(123, c.bar(100, n1:101, n2:102)); |
- Expect.equals(123, c.bar(100, n2:102, n1:101)); |
+ Expect.equals(123, c.bar(100, n1: 101, n2: 102)); |
+ Expect.equals(123, c.bar(100, n2: 102, n1: 101)); |
} |
} |
- |