Unifier: Fix matching of callable references with expression receivers

#KT-21334 Fixed
This commit is contained in:
Alexey Sedunov
2017-11-20 18:22:01 +03:00
parent 354a6cbfd9
commit 998c312ad2
4 changed files with 31 additions and 3 deletions
@@ -0,0 +1,14 @@
public fun String.bar() = ""
fun foo() {
val f = if (1 < 2) {
<selection>"abc"::bar</selection>
} else {
"def"::bar
}
val ff = if (1 < 2) {
("abc")::bar
} else {
("def")::bar
}
}
@@ -0,0 +1,3 @@
"abc"::bar
("abc")::bar