Make NON_CONST_VAL_USED_IN_CONSTANT_EXPRESSION error
This commit is contained in:
+4
-4
@@ -3,11 +3,11 @@ package foo
|
||||
// HACKS
|
||||
|
||||
@native
|
||||
val ROOT = "Kotlin.modules.JS_TESTS"
|
||||
const val ROOT = "Kotlin.modules.JS_TESTS"
|
||||
@native
|
||||
val PATH_TO_F_CREATOR = "foo.B.far\$f"
|
||||
const val PATH_TO_F_CREATOR = "foo.B.far\$f"
|
||||
@native
|
||||
val PATH_TO_G_CREATOR = "foo.B.gar\$f"
|
||||
const val PATH_TO_G_CREATOR = "foo.B.gar\$f"
|
||||
|
||||
@native("$ROOT.$PATH_TO_F_CREATOR")
|
||||
val F_CREATOR: Any = noImpl
|
||||
@@ -54,4 +54,4 @@ fun String.replace(regexp: RegExp, replacement: String): String = noImpl
|
||||
fun String.replaceAll(regexp: String, replacement: String): String = replace(RegExp(regexp, "g"), replacement)
|
||||
|
||||
@native
|
||||
class RegExp(regexp: String, flags: String)
|
||||
class RegExp(regexp: String, flags: String)
|
||||
|
||||
Reference in New Issue
Block a user