JS backend: report diagnostic for class literal(Foo::class) instead of crash with Exception.
This commit is contained in:
-5
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user