Minor: formatting for lambda arguments

This commit is contained in:
Dmitry Petrov
2017-06-07 12:30:19 +03:00
committed by Mikhail Zarechenskiy
parent b7c894a6d3
commit f637ebe9ff
@@ -10,14 +10,14 @@ fun check(expected: String, obj: Any?) {
} }
fun box(): String { fun box(): String {
check("() -> kotlin.Unit") check("() -> kotlin.Unit",
{ -> } { -> })
check("() -> kotlin.Int") check("() -> kotlin.Int",
{ -> 42 } { -> 42 })
check("(kotlin.String) -> kotlin.Long", check("(kotlin.String) -> kotlin.Long",
fun (s: String) = 42.toLong()) fun (s: String) = 42.toLong())
check("(kotlin.Int, kotlin.Int) -> kotlin.Unit") check("(kotlin.Int, kotlin.Int) -> kotlin.Unit",
{ x: Int, y: Int -> } { x: Int, y: Int -> })
check("kotlin.Int.() -> kotlin.Unit", check("kotlin.Int.() -> kotlin.Unit",
fun Int.() {}) fun Int.() {})