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 {
|
||||
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.() {})
|
||||
|
||||
Reference in New Issue
Block a user