Change Signature: Introduce variable for expression which can't be safely copied in the course of argument substitution
This commit is contained in:
@@ -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)
|
||||
}
|
||||
Reference in New Issue
Block a user