f38c0cf348
Similarly to FIR diagnostic tests. This commit enable all available test data and check the reported error messages by FIR. This helps identify some issues in formatting of FIR diagnostics. The changes on the test file are mechanically generated. Failed tests are disabled with `// IGNORE_FIR` and are re-enabled in the second commit.
19 lines
757 B
Kotlin
Vendored
19 lines
757 B
Kotlin
Vendored
fun <T> checkSubtype(t: T) = t
|
|
|
|
class A(val a:Int) {
|
|
|
|
inner class B() {
|
|
val x = checkSubtype<B>(this@B)
|
|
val y = checkSubtype<A>(this@A)
|
|
val z = checkSubtype<B>(this)
|
|
val Int.xx : Int get() = checkSubtype<Int>(this)
|
|
fun Byte.xx() : Double.() -> Unit {
|
|
checkSubtype<Byte>(this)
|
|
val a: Double.() -> Unit = { checkSubtype<Double>(this) + checkSubtype<Byte>(this@xx) }
|
|
val b: Double.() -> Unit = a@{checkSubtype<Double>(this@a) + checkSubtype<Byte>(this@xx) }
|
|
val c = a@{<error descr="[UNRESOLVED_LABEL] Unresolved label">this@a</error> + checkSubtype<Byte>(this@xx) }
|
|
return (a@{checkSubtype<Double>(this@a) + checkSubtype<Byte>(this@xx) })
|
|
}
|
|
}
|
|
}
|