[IR] update testdata: removed extra indentation for function expressions

This commit is contained in:
Zalim Bashorov
2020-11-06 03:26:51 +03:00
committed by teamcityserver
parent cf5ba82453
commit ab8188b032
76 changed files with 168 additions and 168 deletions
@@ -1,5 +1,5 @@
val anonymous: Function0<Unit>
field = local fun <no name provided>() {
field = local fun <no name provided>() {
println()
}
@@ -61,7 +61,7 @@ data class A {
}
var fn: Function1<A, Int>
field = local fun <anonymous>(<name for destructuring parameter 0>: A): Int {
field = local fun <anonymous>(<name for destructuring parameter 0>: A): Int {
val y: Int = <name for destructuring parameter 0>.component2()
return 42.plus(other = y)
}
+1 -1
View File
@@ -1,5 +1,5 @@
fun test1(): Int {
return "42".run<String, Int>(block = local fun String.<anonymous>(): Int {
return "42".run<String, Int>(block = local fun String.<anonymous>(): Int {
return <this>.<get-length>()
}
)
+2 -2
View File
@@ -1,12 +1,12 @@
val test1: Function0<Int>
field = local fun <anonymous>(): Int {
field = local fun <anonymous>(): Int {
return 42
}
get
val test2: Function0<Unit>
field = local fun <anonymous>() {
field = local fun <anonymous>() {
return Unit
}
@@ -32,9 +32,9 @@ interface IInvoke {
}
fun test(fooImpl: IFoo, invokeImpl: IInvoke) {
with<A, Int>(receiver = A, block = local fun A.<anonymous>(): Int {
return with<IFoo, Int>(receiver = fooImpl, block = local fun IFoo.<anonymous>(): Int {
return with<IInvoke, Int>(receiver = invokeImpl, block = local fun IInvoke.<anonymous>(): Int {
with<A, Int>(receiver = A, block = local fun A.<anonymous>(): Int {
return with<IFoo, Int>(receiver = fooImpl, block = local fun IFoo.<anonymous>(): Int {
return with<IInvoke, Int>(receiver = invokeImpl, block = local fun IInvoke.<anonymous>(): Int {
return (<this>, (<this>, <this>).<get-foo>()).invoke()
}
)
+7 -7
View File
@@ -1,27 +1,27 @@
fun test0() {
run<Nothing>(block = local fun <anonymous>(): Nothing {
run<Nothing>(block = local fun <anonymous>(): Nothing {
return Unit
}
)
}
fun test1() {
run<Unit>(block = local fun <anonymous>() {
run<Unit>(block = local fun <anonymous>() {
return Unit
}
)
}
fun test2() {
run<Unit>(block = local fun <anonymous>() {
run<Unit>(block = local fun <anonymous>() {
return Unit
}
)
}
fun test3() {
run<Unit>(block = local fun <anonymous>() {
run<Nothing>(block = local fun <anonymous>(): Nothing {
run<Unit>(block = local fun <anonymous>() {
run<Nothing>(block = local fun <anonymous>(): Nothing {
return Unit
}
)
@@ -30,7 +30,7 @@ fun test3() {
}
fun testLrmFoo1(ints: List<Int>) {
ints.forEach<Int>(action = local fun <anonymous>(it: Int) {
ints.forEach<Int>(action = local fun <anonymous>(it: Int) {
when {
EQEQ(arg0 = it, arg1 = 0) -> return Unit
}
@@ -40,7 +40,7 @@ fun testLrmFoo1(ints: List<Int>) {
}
fun testLrmFoo2(ints: List<Int>) {
ints.forEach<Int>(action = local fun <anonymous>(it: Int) {
ints.forEach<Int>(action = local fun <anonymous>(it: Int) {
when {
EQEQ(arg0 = it, arg1 = 0) -> return Unit
}
+1 -1
View File
@@ -1,5 +1,5 @@
fun test1() {
val hello: Runnable = local fun <anonymous>() {
val hello: Runnable = local fun <anonymous>() {
println(message = "Hello, world!")
}
/*-> Runnable */