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
@@ -8,7 +8,7 @@ public inline fun <T: Closeable, R> T.use1(block: (T)-> R) : R {
}
fun main(args: Array<String>) {
C().<!TYPE_INFERENCE_NO_INFORMATION_FOR_PARAMETER!>use1<!> {
C().use1 {
w -> // ERROR here
<!UNRESOLVED_REFERENCE!>x<!>
}