Frontend: allow omit types in lambda parameters of dynamic call when lambda declareted inside parentheses.

This commit is contained in:
Zalim Bashorov
2014-12-12 17:44:37 +03:00
parent 59c4f55988
commit a6597e8926
2 changed files with 27 additions and 5 deletions
@@ -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 -> })))
}