| Index: compiler/javatests/com/google/dart/compiler/resolver/ResolverTest.java
|
| diff --git a/compiler/javatests/com/google/dart/compiler/resolver/ResolverTest.java b/compiler/javatests/com/google/dart/compiler/resolver/ResolverTest.java
|
| index 263a8471349e544438ec692698ddf41efd688e2a..cb4fc4e1f8b00f585f78c9a8e83ef48a09d3ab54 100644
|
| --- a/compiler/javatests/com/google/dart/compiler/resolver/ResolverTest.java
|
| +++ b/compiler/javatests/com/google/dart/compiler/resolver/ResolverTest.java
|
| @@ -1058,9 +1058,11 @@ public class ResolverTest extends ResolverTestCase {
|
| "class Object {}",
|
| "class A<T> {",
|
| " static foo() { new T(); }", // can't ref type variable in method
|
| + " static bar() { T variable = 1; }",
|
| "}"),
|
| ResolverErrorCode.TYPE_VARIABLE_IN_STATIC_CONTEXT,
|
| - ResolverErrorCode.NEW_EXPRESSION_NOT_CONSTRUCTOR);
|
| + ResolverErrorCode.NEW_EXPRESSION_NOT_CONSTRUCTOR,
|
| + TypeErrorCode.TYPE_VARIABLE_IN_STATIC_CONTEXT);
|
| }
|
|
|
| public void testTypeVariableShadowsClass() {
|
|
|