Minor: formatting for lambda arguments
This commit is contained in:
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.() {})
|
||||||
|
|||||||
Reference in New Issue
Block a user