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

Unified Diff: compiler/java/com/google/dart/compiler/resolver/Resolver.java

Issue 10545008: Eliminate internal compiler error when invoking a function type alias by mistake (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: removed unnecessary file. 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
« no previous file with comments | « no previous file | compiler/java/com/google/dart/compiler/resolver/ResolverErrorCode.java » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: compiler/java/com/google/dart/compiler/resolver/Resolver.java
diff --git a/compiler/java/com/google/dart/compiler/resolver/Resolver.java b/compiler/java/com/google/dart/compiler/resolver/Resolver.java
index f179057ae9d90a01c972706e3664503bd5fefc93..3051193bee12bd96a74f3d0fcdc287e4fcd86221 100644
--- a/compiler/java/com/google/dart/compiler/resolver/Resolver.java
+++ b/compiler/java/com/google/dart/compiler/resolver/Resolver.java
@@ -1489,6 +1489,14 @@ public class Resolver {
onError(node, ResolverErrorCode.CANNOT_CALL_LABEL);
break;
+ case FUNCTION_TYPE_ALIAS:
+ onError(node, ResolverErrorCode.CANNOT_CALL_FUNCTION_TYPE_ALIAS);
+ break;
+
+ case LIBRARY_PREFIX:
+ onError(node, ResolverErrorCode.CANNOT_CALL_LIBRARY_PREFIX);
+ break;
+
default:
throw context.internalError(node, "Unexpected kind of element: %s", kind);
}
« no previous file with comments | « no previous file | compiler/java/com/google/dart/compiler/resolver/ResolverErrorCode.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698