Frontend: allow omit types in lambda parameters of dynamic call when lambda declareted inside parentheses.
This commit is contained in:
+18
@@ -11,7 +11,25 @@ fun test(d: dynamic) {
|
||||
|
||||
d.foo { (x: String, y: Int) -> "" }
|
||||
|
||||
d.foo { (x, y: Int) -> "" }
|
||||
|
||||
d.foo { (x: String, y: Int): Int -> <!TYPE_MISMATCH!>""<!> }
|
||||
|
||||
d.foo { String.(x: String, y: Int): Int -> length() }
|
||||
|
||||
d.foo({})
|
||||
|
||||
d.foo({ x -> })
|
||||
|
||||
d.foo({ x -> } : (Int) -> Unit)
|
||||
|
||||
d.foo(@label { x -> })
|
||||
|
||||
d.foo(@label ({ x, y -> }))
|
||||
|
||||
d.foo((@label ({ (x, y: Int) -> })))
|
||||
|
||||
d.foo(({ x -> }))
|
||||
|
||||
d.foo((({ x -> })))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user