Fixes: use isExactFunctionOrExtensionFunctionType() to detect when lambda can be passed

This commit is contained in:
Valentin Kipyatkov
2015-07-06 21:17:31 +03:00
parent 6b78a53c3d
commit 88dd86d603
8 changed files with 29 additions and 5 deletions
@@ -0,0 +1,9 @@
interface I : () -> Unit
fun foo(i: I){}
fun bar() {
<caret>
}
// ELEMENT: foo
@@ -0,0 +1,9 @@
interface I : () -> Unit
fun foo(i: I){}
fun bar() {
foo(<caret>)
}
// ELEMENT: foo