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

Unified Diff: tests/language/factory6_test.dart

Issue 2125823002: Handle redirects to unresolved redirects (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 4 years, 5 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/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
+}

Powered by Google App Engine
This is Rietveld 408576698