Index: tests/language/factory6_test.dart |
diff --git a/tests/language/super_no_such_method1_test.dart b/tests/language/factory6_test.dart |
similarity index 52% |
copy from tests/language/super_no_such_method1_test.dart |
copy to tests/language/factory6_test.dart |
index 3ee615112eb2020c8a09f64f2b1de34bd6bad185..0f998ff253d1342027c97eaacb05d97025588f4c 100644 |
--- a/tests/language/super_no_such_method1_test.dart |
+++ b/tests/language/factory6_test.dart |
@@ -4,16 +4,14 @@ |
import 'package:expect/expect.dart'; |
-class A { |
- noSuchMethod(im) => 42; |
+abstract class Link<T> { |
+ factory Link.Foo() = LinkFactory<T>.Foo; /// 00: static type warning |
} |
-class B extends A { |
- noSuchMethod(im) => 87; |
- |
- foo() => super.foo(); /// 01: static type warning |
+class LinkFactory<T> { |
+ factory LinkFactory.Foo() = Foo<T>; /// 00: continued |
} |
main() { |
- Expect.equals(42, new B().foo()); /// 01: continued |
-} |
+ Expect.throws(() => new Link<int>.Foo()); /// 00: continued |
+} |