Psi Unifier: Do not unify parameters with block expressions

This commit is contained in:
Alexey Sedunov
2015-11-20 14:16:11 +03:00
parent 741489f4a5
commit 6e8acc6453
4 changed files with 5 additions and 5 deletions
@@ -2,7 +2,7 @@
// PARAM_DESCRIPTOR: val b: kotlin.Int defined in foo
// SIBLING:
fun foo(a: Int): Int {
val b: Int = 1
val b: Int = i(1)
return when (a + b) {
0 -> i(b)
1 -> -b