KT-17503 add check whether callable reference is acceptable in lambda

This commit is contained in:
Mikhail Glukhikh
2017-04-26 17:12:56 +03:00
parent 0eceef1519
commit bb8091a6ca
3 changed files with 33 additions and 0 deletions
@@ -0,0 +1,8 @@
// WITH_RUNTIME
// PROBLEM: none
fun foo(arg: Int) = arg.toString()
fun bar(f: () -> (Int) -> String) {}
val someFun = bar { <caret>::foo }