Postfix expression code generation fixed as per KT-7561.

A set of tests for KT-7561 on codegen side, including exotic inc() functions().
 #KT-7561 Fixed.
This commit is contained in:
Mikhail Glukhikh
2015-04-23 18:09:27 +03:00
parent 5723c2a077
commit 4570872bfd
17 changed files with 258 additions and 2 deletions
@@ -0,0 +1,8 @@
public fun box() : String {
var i : Int?
i = 10
// Prefix increment on a smart cast should work
val j = ++i
return if (j == 11 && 11 == i) "OK" else "fail j = $j i = $i"
}