Add tests for property const initializers
Merge-request: KT-MR-8661 Merged-by: Vladimir Sukharev <Vladimir.Sukharev@jetbrains.com>
This commit is contained in:
committed by
Space Team
parent
3a9ca1c1eb
commit
e75d739c7a
@@ -0,0 +1,19 @@
|
||||
// KT-56023
|
||||
// JS_IR: InterpreterError: Unsupported number of arguments for invocation as builtin function: four
|
||||
// NATIVE: in mode -Pkotlin.internal.native.test.mode=TWO_STAGE_MULTI_MODULE (default test mode), test fails as below
|
||||
// InterpreterError: Unsupported number of arguments for invocation as builtin function: four
|
||||
// in mode -Pkotlin.internal.native.test.mode=ONE_STAGE_MULTI_MODULE, test passes
|
||||
// IGNORE_BACKEND_K2: NATIVE, JS_IR
|
||||
|
||||
// MODULE: lib
|
||||
// FILE: lib.kt
|
||||
const val four = 4
|
||||
|
||||
// MODULE: main(lib)
|
||||
// FILE: main.kt
|
||||
fun box(): String {
|
||||
if (four == 4)
|
||||
return "OK"
|
||||
else
|
||||
return four.toString()
|
||||
}
|
||||
Reference in New Issue
Block a user