[IR] update testdata: removed extra indentation for function expressions
This commit is contained in:
committed by
teamcityserver
parent
cf5ba82453
commit
ab8188b032
Vendored
+3
-3
@@ -20,21 +20,21 @@ fun C.extensionBoth(i: Int, s: String = "", vararg t: String) {
|
||||
}
|
||||
|
||||
fun testExtensionVararg() {
|
||||
use(f = local fun extensionVararg(p0: C, p1: Int) {
|
||||
use(f = local fun extensionVararg(p0: C, p1: Int) {
|
||||
p0.extensionVararg(i = p1)
|
||||
}
|
||||
)
|
||||
}
|
||||
|
||||
fun testExtensionDefault() {
|
||||
use(f = local fun extensionDefault(p0: C, p1: Int) {
|
||||
use(f = local fun extensionDefault(p0: C, p1: Int) {
|
||||
p0.extensionDefault(i = p1)
|
||||
}
|
||||
)
|
||||
}
|
||||
|
||||
fun testExtensionBoth() {
|
||||
use(f = local fun extensionBoth(p0: C, p1: Int) {
|
||||
use(f = local fun extensionBoth(p0: C, p1: Int) {
|
||||
p0.extensionBoth(i = p1)
|
||||
}
|
||||
)
|
||||
|
||||
Vendored
+4
-4
@@ -17,28 +17,28 @@ fun fnv(vararg xs: Int): Int {
|
||||
}
|
||||
|
||||
fun test0() {
|
||||
return useUnit0(fn = local fun fn0() {
|
||||
return useUnit0(fn = local fun fn0() {
|
||||
fn0() /*~> Unit */
|
||||
}
|
||||
)
|
||||
}
|
||||
|
||||
fun test1() {
|
||||
return useUnit1(fn = local fun fn1(p0: Int) {
|
||||
return useUnit1(fn = local fun fn1(p0: Int) {
|
||||
fn1(x = p0) /*~> Unit */
|
||||
}
|
||||
)
|
||||
}
|
||||
|
||||
fun testV0() {
|
||||
return useUnit0(fn = local fun fnv() {
|
||||
return useUnit0(fn = local fun fnv() {
|
||||
fnv() /*~> Unit */
|
||||
}
|
||||
)
|
||||
}
|
||||
|
||||
fun testV1() {
|
||||
return useUnit1(fn = local fun fnv(p0: Int) {
|
||||
return useUnit1(fn = local fun fnv(p0: Int) {
|
||||
fnv(xs = [p0]) /*~> Unit */
|
||||
}
|
||||
)
|
||||
|
||||
+2
-2
@@ -46,7 +46,7 @@ fun withVararg(vararg xs: Int): Int {
|
||||
fun test1() {
|
||||
{ // BLOCK
|
||||
val tmp0_array: A = A
|
||||
val tmp2_sam: IFoo = local fun withVararg(p0: Int) {
|
||||
val tmp2_sam: IFoo = local fun withVararg(p0: Int) {
|
||||
withVararg(xs = [p0]) /*~> Unit */
|
||||
}
|
||||
/*-> IFoo */
|
||||
@@ -57,7 +57,7 @@ fun test1() {
|
||||
fun test2() {
|
||||
{ // BLOCK
|
||||
val tmp0_array: B = B
|
||||
val tmp2_sam: IFoo2 = local fun withVararg(p0: Int) {
|
||||
val tmp2_sam: IFoo2 = local fun withVararg(p0: Int) {
|
||||
withVararg(xs = [p0]) /*~> Unit */
|
||||
}
|
||||
/*-> IFoo2 */
|
||||
|
||||
Vendored
+1
-1
@@ -30,7 +30,7 @@ class Outer {
|
||||
}
|
||||
|
||||
fun testConstructor(): Any {
|
||||
return use(fn = local fun <init>(p0: Int): C {
|
||||
return use(fn = local fun <init>(p0: Int): C {
|
||||
return C(xs = [p0])
|
||||
}
|
||||
)
|
||||
|
||||
@@ -20,14 +20,14 @@ fun use(fn: Function0<Any>): Any {
|
||||
}
|
||||
|
||||
fun testFn(): Any {
|
||||
return use(fn = local fun foo(): String {
|
||||
return use(fn = local fun foo(): String {
|
||||
return foo()
|
||||
}
|
||||
)
|
||||
}
|
||||
|
||||
fun testCtor(): Any {
|
||||
return use(fn = local fun <init>(): C {
|
||||
return use(fn = local fun <init>(): C {
|
||||
return C()
|
||||
}
|
||||
)
|
||||
|
||||
+7
-7
@@ -36,7 +36,7 @@ class C {
|
||||
}
|
||||
|
||||
fun testLambda() {
|
||||
useSuspend(fn = local suspend fun <anonymous>() {
|
||||
useSuspend(fn = local suspend fun <anonymous>() {
|
||||
foo1()
|
||||
}
|
||||
)
|
||||
@@ -47,42 +47,42 @@ fun testNoCoversion() {
|
||||
}
|
||||
|
||||
fun testSuspendPlain() {
|
||||
useSuspend(fn = local suspend fun foo1() {
|
||||
useSuspend(fn = local suspend fun foo1() {
|
||||
foo1()
|
||||
}
|
||||
)
|
||||
}
|
||||
|
||||
fun testSuspendWithArgs() {
|
||||
useSuspendInt(fn = local suspend fun fooInt(p0: Int) {
|
||||
useSuspendInt(fn = local suspend fun fooInt(p0: Int) {
|
||||
fooInt(x = p0)
|
||||
}
|
||||
)
|
||||
}
|
||||
|
||||
fun testWithVararg() {
|
||||
useSuspend(fn = local suspend fun foo2() {
|
||||
useSuspend(fn = local suspend fun foo2() {
|
||||
foo2()
|
||||
}
|
||||
)
|
||||
}
|
||||
|
||||
fun testWithVarargMapped() {
|
||||
useSuspendInt(fn = local suspend fun foo2(p0: Int) {
|
||||
useSuspendInt(fn = local suspend fun foo2(p0: Int) {
|
||||
foo2(xs = [p0])
|
||||
}
|
||||
)
|
||||
}
|
||||
|
||||
fun testWithCoercionToUnit() {
|
||||
useSuspend(fn = local suspend fun foo3() {
|
||||
useSuspend(fn = local suspend fun foo3() {
|
||||
foo3() /*~> Unit */
|
||||
}
|
||||
)
|
||||
}
|
||||
|
||||
fun testWithDefaults() {
|
||||
useSuspend(fn = local suspend fun foo4() {
|
||||
useSuspend(fn = local suspend fun foo4() {
|
||||
foo4()
|
||||
}
|
||||
)
|
||||
|
||||
+1
-1
@@ -31,7 +31,7 @@ object Obj : A {
|
||||
}
|
||||
|
||||
fun testUnbound() {
|
||||
use1(fn = local fun foo(p0: A, p1: Int) {
|
||||
use1(fn = local fun foo(p0: A, p1: Int) {
|
||||
p0.foo(xs = [p1]) /*~> Unit */
|
||||
}
|
||||
)
|
||||
|
||||
+1
-1
@@ -11,7 +11,7 @@ fun withVararg(vararg xs: Int): Int {
|
||||
}
|
||||
|
||||
fun test() {
|
||||
useFoo(foo = local fun withVararg(p0: Int) {
|
||||
useFoo(foo = local fun withVararg(p0: Int) {
|
||||
withVararg(xs = [p0]) /*~> Unit */
|
||||
}
|
||||
/*-> IFoo */)
|
||||
|
||||
+5
-5
@@ -35,21 +35,21 @@ object Host {
|
||||
}
|
||||
|
||||
fun testDefault(): String {
|
||||
return use(fn = local fun fnWithDefault(p0: Int): String {
|
||||
return use(fn = local fun fnWithDefault(p0: Int): String {
|
||||
return fnWithDefault(a = p0)
|
||||
}
|
||||
)
|
||||
}
|
||||
|
||||
fun testVararg(): String {
|
||||
return use(fn = local fun fnWithVarargs(p0: Int): String {
|
||||
return use(fn = local fun fnWithVarargs(p0: Int): String {
|
||||
return fnWithVarargs(xs = [p0])
|
||||
}
|
||||
)
|
||||
}
|
||||
|
||||
fun testCoercionToUnit() {
|
||||
return coerceToUnit(fn = local fun fnWithDefault(p0: Int) {
|
||||
return coerceToUnit(fn = local fun fnWithDefault(p0: Int) {
|
||||
fnWithDefault(a = p0) /*~> Unit */
|
||||
}
|
||||
)
|
||||
@@ -66,14 +66,14 @@ fun testImportedObjectMember(): String {
|
||||
}
|
||||
|
||||
fun testDefault0(): String {
|
||||
return use0(fn = local fun fnWithDefaults(): String {
|
||||
return use0(fn = local fun fnWithDefaults(): String {
|
||||
return fnWithDefaults()
|
||||
}
|
||||
)
|
||||
}
|
||||
|
||||
fun testVararg0(): String {
|
||||
return use0(fn = local fun fnWithVarargs(): String {
|
||||
return use0(fn = local fun fnWithVarargs(): String {
|
||||
return fnWithVarargs()
|
||||
}
|
||||
)
|
||||
|
||||
+3
-3
@@ -11,7 +11,7 @@ fun sum(vararg args: Int): Int {
|
||||
}
|
||||
|
||||
fun nsum(vararg args: Number): Int {
|
||||
return sum(args = [*IntArray(size = args.<get-size>(), init = local fun <anonymous>(it: Int): Int {
|
||||
return sum(args = [*IntArray(size = args.<get-size>(), init = local fun <anonymous>(it: Int): Int {
|
||||
return args.get(index = it).toInt()
|
||||
}
|
||||
)])
|
||||
@@ -33,7 +33,7 @@ fun useStringArray(fn: Function1<Array<String>, Unit>) {
|
||||
}
|
||||
|
||||
fun testPlainArgs() {
|
||||
usePlainArgs(fn = local fun sum(p0: Int, p1: Int): Int {
|
||||
usePlainArgs(fn = local fun sum(p0: Int, p1: Int): Int {
|
||||
return sum(args = [p0, p1])
|
||||
}
|
||||
)
|
||||
@@ -48,7 +48,7 @@ fun testArrayAsVararg() {
|
||||
}
|
||||
|
||||
fun testArrayAndDefaults() {
|
||||
useStringArray(fn = local fun zap(p0: Array<out String>) {
|
||||
useStringArray(fn = local fun zap(p0: Array<out String>) {
|
||||
zap(b = [*p0])
|
||||
}
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user