[FIR] Let prefix inc/dec call getter twice for compatibility with K1
#KT-57179 Fixed
This commit is contained in:
committed by
Space Team
parent
fea344faa4
commit
45d2424ad8
@@ -0,0 +1,13 @@
|
||||
// Changed in K2, see KT-57178
|
||||
|
||||
open class I {
|
||||
operator fun inc(): ST = ST()
|
||||
}
|
||||
|
||||
class ST : I()
|
||||
|
||||
fun main() {
|
||||
var local = I()
|
||||
val x: ST = ++local
|
||||
val y: ST = <!TYPE_MISMATCH!>local<!>
|
||||
}
|
||||
Reference in New Issue
Block a user