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

Unified Diff: compiler/javatests/com/google/dart/compiler/resolver/ResolverTest.java

Issue 10696056: Fix for issues 3729 and 3523 (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 6 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: compiler/javatests/com/google/dart/compiler/resolver/ResolverTest.java
===================================================================
--- compiler/javatests/com/google/dart/compiler/resolver/ResolverTest.java (revision 9267)
+++ compiler/javatests/com/google/dart/compiler/resolver/ResolverTest.java (working copy)
@@ -19,6 +19,7 @@
import junit.framework.Assert;
import java.util.List;
+import java.util.Map;
/**
* Basic tests of the resolver.
@@ -1111,6 +1112,17 @@
TypeErrorCode.NO_SUCH_TYPE);
}
+ public void test_cascadeWithTypeVariable() {
+ resolveAndTest(Joiner.on("\n").join(
+ "class Object {}",
+ "class C<T> {",
+ " test() {",
+ " this..T;",
+ " }",
+ "}"),
+ ResolverErrorCode.TYPE_VARIABLE_NOT_ALLOWED_IN_IDENTIFIER);
+ }
+
/**
* When {@link SupertypeResolver} can not find "UnknownA", it uses {@link DynamicType}, which
* returns {@link DynamicElement}. By itself, this is OK. However when we later try to resolve

Powered by Google App Engine
This is Rietveld 408576698