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

Unified Diff: editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/resolver/NonErrorResolverTest.java

Issue 41243002: Issue 14328. Propagate type arguments into super type when looking up super constructor. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Try to upload. Created 7 years, 2 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: editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/resolver/NonErrorResolverTest.java
diff --git a/editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/resolver/NonErrorResolverTest.java b/editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/resolver/NonErrorResolverTest.java
index 246f51726410afe0adab9ecc736af09bf2d3fabd..1bb36184b5f750ab7d418e2e7fca4fe7bfccee7c 100644
--- a/editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/resolver/NonErrorResolverTest.java
+++ b/editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/resolver/NonErrorResolverTest.java
@@ -2544,7 +2544,7 @@ public class NonErrorResolverTest extends ResolverTestCase {
verify(source);
}
- public void test_propagateTypeArgsIntoBounds() throws Exception {
+ public void test_propagateTypeArgs_intoBounds() throws Exception {
Source source = addSource(createSource(//
"abstract class A<E> {}",
"abstract class B<F> implements A<F>{}",
@@ -2555,6 +2555,21 @@ public class NonErrorResolverTest extends ResolverTestCase {
verify(source);
}
+ public void test_propagateTypeArgs_intoSupertype() throws Exception {
+ Source source = addSource(createSource(//
+ "class A<T> {",
+ " A(T p);",
+ " A.named(T p);",
+ "}",
+ "class B<S> extends A<S> {",
+ " B(S p) : super(p);",
+ " B.named(S p) : super.named(p);",
+ "}"));
+ resolve(source);
+ assertNoErrors(source);
+ verify(source);
+ }
+
public void test_proxy_annotation_prefixed() throws Exception {
Source source = addSource(createSource(//
"library L;",

Powered by Google App Engine
This is Rietveld 408576698