JS backend: report diagnostic for class literal(Foo::class) instead of crash with Exception.
This commit is contained in:
@@ -0,0 +1,4 @@
|
||||
$TESTDATA_DIR$/diagnosticForClassLiteral.kt
|
||||
-no-stdlib
|
||||
-output
|
||||
$TEMP_DIR$/out.js
|
||||
@@ -0,0 +1,7 @@
|
||||
package foo
|
||||
|
||||
class A
|
||||
|
||||
fun test() {
|
||||
A::class
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
WARNING: compiler/testData/cli/js/diagnosticForClassLiteral.kt: (6, 5) The expression is unused
|
||||
ERROR: compiler/testData/cli/js/diagnosticForClassLiteral.kt: (6, 6) Reflection types can't be loaded. Please ensure that you have Kotlin Runtime in your classpath
|
||||
COMPILATION_ERROR
|
||||
Reference in New Issue
Block a user