[FIR] Adding a test case to show resolution of KT-29559 in K2

This commit is contained in:
Brian Norman
2024-03-01 09:27:24 -06:00
committed by Space Team
parent 2de0e4b8d2
commit 8320668485
9 changed files with 136 additions and 0 deletions
@@ -0,0 +1,11 @@
open class I {
operator fun inc(): ST = ST()
}
class ST : I()
fun main() {
var local = I()
val x: ST = <!TYPE_MISMATCH!>local++<!>
val y: ST = <!TYPE_MISMATCH!>local<!>
}