Change Signature: Introduce variable for expression which can't be safely copied in the course of argument substitution

This commit is contained in:
Alexey Sedunov
2015-04-27 15:39:55 +03:00
parent 14f63cdce5
commit 7831e75955
17 changed files with 267 additions and 42 deletions
@@ -0,0 +1,12 @@
// WITH_DEFAULT_VALUE: false
fun foo(i: Int): Int {
return i / 2
}
fun test() {
var x = 1
val i = ++x
val i1 = x++
foo(i * i1)
}