Allowed shorthand parameter list with type reference in lambda.
This commit is contained in:
@@ -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 -> }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user