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

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

Issue 50683007: Issue 14580. Fix for extra type arguments applying. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Rollback codec.dart changes 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 08ea82202c5eef6075fbe18f5c4d62476f7d41ea..eb212d7696a8ebd274401cb251b5326b7ada135f 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
@@ -2882,6 +2882,19 @@ public class NonErrorResolverTest extends ResolverTestCase {
verify(source);
}
+ public void test_reversedTypeArguments() throws Exception {
+ Source source = addSource(createSource(//
+ "class Codec<S1, T1> {",
+ " Codec<T1, S1> get inverted => new _InvertedCodec<T1, S1>(this);",
+ "}",
+ "class _InvertedCodec<T2, S2> extends Codec<T2, S2> {",
+ " _InvertedCodec(Codec<S2, T2> codec);",
+ "}"));
+ resolve(source);
+ assertNoErrors(source);
+ verify(source);
+ }
+
public void test_staticAccessToInstanceMember_annotation() throws Exception {
Source source = addSource(createSource(//
"class A {",

Powered by Google App Engine
This is Rietveld 408576698