Deprecate function expressions with names
This commit is contained in:
+1
-1
@@ -3,5 +3,5 @@
|
||||
fun <T> foo(f : (T) -> T) : T = throw Exception()
|
||||
|
||||
fun test() {
|
||||
val a : Int = foo(fun f(x) = x)
|
||||
val a : Int = foo(fun (x) = x)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user