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); |
} |