[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
@@ -10,11 +10,11 @@ fun foo2(r1: IRunnable, r2: IRunnable, vararg s: String) {
}
fun test(fn: Function0<Unit>, r: IRunnable, s: String, arr: Array<String>) {
foo1(r = local fun <anonymous>() {
foo1(r = local fun <anonymous>() {
return Unit
}
/*-> IRunnable */, s = [s])
foo1(r = local fun <anonymous>() {
foo1(r = local fun <anonymous>() {
return Unit
}
/*-> IRunnable */, s = [*arr])
@@ -22,33 +22,33 @@ fun test(fn: Function0<Unit>, r: IRunnable, s: String, arr: Array<String>) {
foo1(r = fn /*-> IRunnable */, s = [*arr])
foo1(r = r, s = [s])
foo1(r = r, s = [*arr])
foo2(r1 = local fun <anonymous>() {
foo2(r1 = local fun <anonymous>() {
return Unit
}
/*-> IRunnable */, r2 = local fun <anonymous>() {
/*-> IRunnable */, r2 = local fun <anonymous>() {
return Unit
}
/*-> IRunnable */, s = [s])
foo2(r1 = local fun <anonymous>() {
foo2(r1 = local fun <anonymous>() {
return Unit
}
/*-> IRunnable */, r2 = local fun <anonymous>() {
/*-> IRunnable */, r2 = local fun <anonymous>() {
return Unit
}
/*-> IRunnable */, s = [*arr])
foo2(r1 = fn /*-> IRunnable */, r2 = local fun <anonymous>() {
foo2(r1 = fn /*-> IRunnable */, r2 = local fun <anonymous>() {
return Unit
}
/*-> IRunnable */, s = [s])
foo2(r1 = fn /*-> IRunnable */, r2 = local fun <anonymous>() {
foo2(r1 = fn /*-> IRunnable */, r2 = local fun <anonymous>() {
return Unit
}
/*-> IRunnable */, s = [*arr])
foo2(r1 = r, r2 = local fun <anonymous>() {
foo2(r1 = r, r2 = local fun <anonymous>() {
return Unit
}
/*-> IRunnable */, s = [s])
foo2(r1 = r, r2 = local fun <anonymous>() {
foo2(r1 = r, r2 = local fun <anonymous>() {
return Unit
}
/*-> IRunnable */, s = [*arr])
@@ -8,7 +8,7 @@ fun foo(f: Foo): String {
}
fun test(): String {
return foo(f = local fun <anonymous>(): String {
return foo(f = local fun <anonymous>(): String {
return "OK"
}
/*-> Foo */)
@@ -55,11 +55,11 @@ val fis: Fn<Int, String>
get
fun test(j: J) {
j.runConversion(f1 = <get-fsi>(), f2 = local fun <anonymous>(s: String, i: Int, ti: Int): String {
j.runConversion(f1 = <get-fsi>(), f2 = local fun <anonymous>(s: String, i: Int, ti: Int): String {
return ""
}
/*-> Fn<Int, String> */) /*~> Unit */
j.runConversion(f1 = local fun <anonymous>(s: String, i: Int, ts: String): Int {
j.runConversion(f1 = local fun <anonymous>(s: String, i: Int, ts: String): Int {
return 1
}
/*-> Fn<String, Int> */, f2 = <get-fis>()) /*~> Unit */
@@ -7,20 +7,20 @@ fun useVararg(vararg foos: IFoo) {
}
fun testLambda() {
useVararg(foos = [ local fun <anonymous>(it: Int) {
useVararg(foos = [local fun <anonymous>(it: Int) {
return Unit
}
/*-> IFoo */])
}
fun testSeveralLambdas() {
useVararg(foos = [ local fun <anonymous>(it: Int) {
useVararg(foos = [local fun <anonymous>(it: Int) {
return Unit
}
/*-> IFoo */, local fun <anonymous>(it: Int) {
/*-> IFoo */, local fun <anonymous>(it: Int) {
return Unit
}
/*-> IFoo */, local fun <anonymous>(it: Int) {
/*-> IFoo */, local fun <anonymous>(it: Int) {
return Unit
}
/*-> IFoo */])
@@ -31,7 +31,7 @@ fun withVarargOfInt(vararg xs: Int): String {
}
fun testAdaptedCR() {
useVararg(foos = [ local fun withVarargOfInt(p0: Int) {
useVararg(foos = [local fun withVarargOfInt(p0: Int) {
withVarargOfInt(xs = [p0]) /*~> Unit */
}
/*-> IFoo */])
@@ -6,7 +6,7 @@ fun interface MyRunnable {
fun test(a: Any, r: MyRunnable) {
when {
a is MyRunnable -> { // BLOCK
foo(rs = [ local fun <anonymous>() {
foo(rs = [local fun <anonymous>() {
return Unit
}
/*-> MyRunnable */, r, a /*as MyRunnable */])
@@ -18,7 +18,7 @@ fun testSamConstructor(): KRunnable {
}
fun testSamCosntructorOnAdapted(): KRunnable {
return local fun foo1() {
return local fun foo1() {
foo1() /*~> Unit */
}
/*-> KRunnable */
@@ -29,7 +29,7 @@ fun testSamConversion() {
}
fun testSamConversionOnAdapted() {
use(r = local fun foo1() {
use(r = local fun foo1() {
foo1() /*~> Unit */
}
/*-> KRunnable */)