Add a couple more tests for array constructors and references

This commit is contained in:
pyos
2021-05-05 10:45:23 +02:00
committed by TeamCityServer
parent a30cfc332d
commit 1181854bd6
14 changed files with 88 additions and 6 deletions
@@ -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()