Tests for issues fixed in JVM_IR
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
// WITH_RUNTIME
|
||||
// IGNORE_BACKEND: JVM
|
||||
// IGNORE_LIGHT_ANALYSIS
|
||||
// DONT_TARGET_EXACT_BACKEND: WASM
|
||||
// WASM_MUTE_REASON: PROPERTY_REFERENCES
|
||||
|
||||
fun box(): String {
|
||||
val ints = intArrayOf(1, 2, 3)
|
||||
|
||||
val test1 = IntArray::size.get(ints)
|
||||
if (test1 != 3) throw Exception("IntArray::size.get(ints) != 3: $test1")
|
||||
|
||||
val test2 = with(ints, IntArray::size)
|
||||
if (test2 != 3) throw Exception("with(ints, IntArray::size) != 3: $test2")
|
||||
|
||||
return "OK"
|
||||
}
|
||||
Reference in New Issue
Block a user