Inliner: specify explicit lambda signature for calls with lambdas

So #KT-17213 Fixed
So #KT-17395 Fixed
This commit is contained in:
Mikhail Glukhikh
2017-04-04 15:38:14 +03:00
parent 02e9a3d027
commit f8e1f5e613
10 changed files with 102 additions and 6 deletions
@@ -0,0 +1,7 @@
class Declaration {
fun lambdaType(p: Int, f: (Int) -> Int) = f(p)
}
fun call(declaration: Declaration) {
declaration.<caret>lambdaType(10) { _ -> 11 }
}