KT-17503 add check whether callable reference is acceptable in lambda
This commit is contained in:
Vendored
+8
@@ -0,0 +1,8 @@
|
||||
// WITH_RUNTIME
|
||||
// PROBLEM: none
|
||||
|
||||
fun foo(arg: Int) = arg.toString()
|
||||
|
||||
fun bar(f: () -> (Int) -> String) {}
|
||||
|
||||
val someFun = bar { <caret>::foo }
|
||||
Reference in New Issue
Block a user