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

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

Issue 10544040: Issue 3309. Report only single error when attempt to use function in place of type (Closed) Base URL: https://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
diff --git a/compiler/javatests/com/google/dart/compiler/resolver/ResolverTest.java b/compiler/javatests/com/google/dart/compiler/resolver/ResolverTest.java
index 5ba837935920e617bd9c7473689d9652805370b4..fe120621fdb40a06b3b3168689d277a3d9823243 100644
--- a/compiler/javatests/com/google/dart/compiler/resolver/ResolverTest.java
+++ b/compiler/javatests/com/google/dart/compiler/resolver/ResolverTest.java
@@ -712,8 +712,7 @@ public class ResolverTest extends ResolverTestCase {
" var Bar;",
" create() { return new Bar();}",
"}"),
- ResolverErrorCode.NOT_A_TYPE,
- ResolverErrorCode.NEW_EXPRESSION_NOT_CONSTRUCTOR);
+ ResolverErrorCode.NOT_A_TYPE);
}
public void testNewExpression4() {
@@ -927,8 +926,7 @@ public class ResolverTest extends ResolverTestCase {
" new Unknown();",
" }",
"}"),
- ResolverErrorCode.NO_SUCH_TYPE,
- ResolverErrorCode.NEW_EXPRESSION_NOT_CONSTRUCTOR);
+ ResolverErrorCode.NO_SUCH_TYPE);
}
public void test_new_noSuchType_typeArgument() throws Exception {
@@ -1063,7 +1061,6 @@ public class ResolverTest extends ResolverTestCase {
" static bar() { T variable = 1; }",
"}"),
ResolverErrorCode.TYPE_VARIABLE_IN_STATIC_CONTEXT,
- ResolverErrorCode.NEW_EXPRESSION_NOT_CONSTRUCTOR,
TypeErrorCode.TYPE_VARIABLE_IN_STATIC_CONTEXT);
}

Powered by Google App Engine
This is Rietveld 408576698