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 {
check("() -> kotlin.Unit")
{ -> }
check("() -> kotlin.Int")
{ -> 42 }
check("() -> kotlin.Unit",
{ -> })
check("() -> kotlin.Int",
{ -> 42 })
check("(kotlin.String) -> kotlin.Long",
fun (s: String) = 42.toLong())
check("(kotlin.Int, kotlin.Int) -> kotlin.Unit")
{ x: Int, y: Int -> }
check("(kotlin.Int, kotlin.Int) -> kotlin.Unit",
{ x: Int, y: Int -> })
check("kotlin.Int.() -> kotlin.Unit",
fun Int.() {})