45d2424ad8
#KT-57179 Fixed
14 lines
181 B
Kotlin
Vendored
14 lines
181 B
Kotlin
Vendored
// 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 = local
|
|
}
|