Allowed shorthand parameter list with type reference in lambda.

This commit is contained in:
Stanislav Erokhin
2015-03-11 18:59:54 +03:00
parent 7a8341d0f1
commit c24c3daf54
7 changed files with 259 additions and 13 deletions
@@ -31,4 +31,12 @@ fun foo() {
{((a: Int = object { fun t() {} }) -> Int).(x: Int) : String -> "" }
{ A.B<String>.(x: Int) -> }
{((a: Boolean = true) -> Int).(x: Any) : Unit -> }
{a: b -> f}
{a: b, c -> f}
{a: b, c: d -> f}
{a: (Int) -> Unit, c: (Int) -> Unit -> f}
//{a: ((Int) -> Unit) ->} todo
//{[a] a: A -> }
}