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 9c85d71723fc9ceb46dec1620eaa12d291ef2d2b..6fc9768a36ef513624652fedaa79477633b2d44e 100644 |
--- a/compiler/javatests/com/google/dart/compiler/resolver/ResolverTest.java |
+++ b/compiler/javatests/com/google/dart/compiler/resolver/ResolverTest.java |
@@ -669,6 +669,17 @@ public class ResolverTest extends ResolverTestCase { |
TypeErrorCode.NO_SUCH_TYPE); |
} |
+ public void test_noSuchType_methodParameterType_noQualifier() throws Exception { |
+ resolveAndTest(Joiner.on("\n").join( |
+ "class Object {}", |
+ "class MyClass {", |
+ " Object foo(lib.Unknown p) {", |
+ " return null;", |
+ " }", |
+ "}"), |
+ TypeErrorCode.NO_SUCH_TYPE); |
+ } |
+ |
public void test_noSuchType_returnType() throws Exception { |
resolveAndTest(Joiner.on("\n").join( |
"class Object {}", |