| 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
|
|
|