Fix type inference for function expression parameters

This commit is contained in:
Stanislav Erokhin
2015-03-05 20:45:26 +03:00
parent af4aff38e5
commit 8accdcc5cb
9 changed files with 76 additions and 18 deletions
@@ -0,0 +1,7 @@
// !DIAGNOSTICS: -UNUSED_VARIABLE -UNUSED_PARAMETER
fun <T> foo(f : (T) -> T) : T = throw Exception()
fun test() {
val a : Int = foo(fun f(x) = x)
}