Add a couple more tests for array constructors and references
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
// WITH_RUNTIME
|
||||
// DONT_TARGET_EXACT_BACKEND: WASM
|
||||
// WASM_MUTE_REASON: PROPERTY_REFERENCES
|
||||
fun foo(it: Int) = "O"[it]
|
||||
|
||||
val Int.foo: Char
|
||||
get() = "K"[this]
|
||||
|
||||
fun box(): String =
|
||||
CharArray(1, ::foo)[0].toString() + CharArray(1, Int::foo)[0].toString()
|
||||
Reference in New Issue
Block a user