KT-877 - wrong codegen for unary plus
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
fun box() : String {
|
||||
var a : Int = -1
|
||||
if((+a) != -1) return "fail 1"
|
||||
a = 1
|
||||
if((+a) != 1) return "fail 2"
|
||||
if((+-1) != -1) return "fail 3"
|
||||
if((-+a) != -1) return "fail 4"
|
||||
return "OK"
|
||||
}
|
||||
Reference in New Issue
Block a user