JS backend: report diagnostic for class literal(Foo::class) instead of crash with Exception.

This commit is contained in:
Zalim Bashorov
2015-03-16 22:23:52 +03:00
parent 8d6cbb671a
commit 975c4ffab5
5 changed files with 20 additions and 5 deletions
@@ -183,11 +183,6 @@ public final class ExpressionVisitor extends TranslatorVisitor<JsNode> {
return newVar(name, initializer).source(expression);
}
@Override
public JsNode visitClassLiteralExpression(@NotNull JetClassLiteralExpression expression, @NotNull TranslationContext context) {
throw new UnsupportedOperationException("Class literals are not yet supported: " + expression.getText());
}
@Override
@NotNull
public JsNode visitCallableReferenceExpression(@NotNull JetCallableReferenceExpression expression, @NotNull TranslationContext context) {