KT-613 verify error ++/-- in presence of this|receiver
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
namespace name
|
||||
|
||||
class Test() {
|
||||
var i = 5
|
||||
val ten = 10.lng
|
||||
|
||||
fun Long.t() = this.int + i++ + ++i
|
||||
|
||||
fun tt() = ten.t()
|
||||
}
|
||||
|
||||
fun box() : String {
|
||||
var m = Test()
|
||||
return if((m.i)++ == 5 && ++(m.i) == 7 && m.tt() == 26) "OK" else "fail"
|
||||
}
|
||||
Reference in New Issue
Block a user