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,10 @@
|
||||
// WITH_DEFAULT_VALUE: false
|
||||
|
||||
fun foo(a: Int, b: Int): Int {
|
||||
return <selection>a * b</selection> / 2
|
||||
}
|
||||
|
||||
fun test() {
|
||||
var x = 1
|
||||
foo(++x, x++)
|
||||
}
|
||||
Reference in New Issue
Block a user