KT-3150 Kotlin m4 don't recognize function literals

#KT-3150 fixed

 added check for PLACEHOLDER_FUNCTION_TYPE to constraint system
This commit is contained in:
Svetlana Isakova
2012-12-19 19:50:44 +04:00
parent b467638633
commit 972b234db6
8 changed files with 54 additions and 14 deletions
@@ -11,8 +11,8 @@ public inline fun <T: Closeable, R> T.use(block: (t: T)-> R) : R {
}
fun test() {
C().<!TYPE_INFERENCE_NO_INFORMATION_FOR_PARAMETER!>use<!> {
C().use {
it.close()
<!UNRESOLVED_REFERENCE!>x<!>
}
}
}