Add and (un)mute inline class tests

This commit is contained in:
Steven Schäfer
2019-05-10 13:33:50 +02:00
committed by Alexander Udalov
parent f1f0c7e0a0
commit 917ef250cf
273 changed files with 117 additions and 262 deletions
@@ -0,0 +1,14 @@
// IGNORE_BACKEND: JVM, JVM_IR, JS, JS_IR, NATIVE
// There is a bug in the type mapper which results in an incorrect asm type for Z
// when the names of the inline class backing field and an extension property clash.
// https://youtrack.jetbrains.com/issue/KT-31927
inline class Z(val s: String) {
val Int.s: Int get() = 42
}
fun box(): String {
if (Z("a").toString() == "Z(s=\"a\")")
return "OK"
return "Fail"
}