Make NON_CONST_VAL_USED_IN_CONSTANT_EXPRESSION error

This commit is contained in:
Zalim Bashorov
2015-10-16 15:07:31 +03:00
parent a16658a9e9
commit de5dc61820
33 changed files with 145 additions and 121 deletions
@@ -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)