[IR] update testdata after rebase
This commit is contained in:
committed by
teamcityserver
parent
1c6c996084
commit
3b1a6389ab
+60
-32
@@ -22,129 +22,156 @@ fun produceFun(): Function0<Unit> {
|
||||
|
||||
fun testSimple(fn: Function0<Unit>) {
|
||||
useSuspend(sfn = { //BLOCK
|
||||
local suspend fun suspendConversion0() {
|
||||
fn.invoke()
|
||||
local suspend fun Function0<Unit>.suspendConversion0() {
|
||||
callee.invoke()
|
||||
}
|
||||
|
||||
|
||||
::suspendConversion0
|
||||
})
|
||||
}
|
||||
|
||||
fun testSimpleNonVal() {
|
||||
useSuspend(sfn = { //BLOCK
|
||||
val tmp0: Function0<Unit> = produceFun()
|
||||
local suspend fun suspendConversion1() {
|
||||
tmp0.invoke()
|
||||
local suspend fun Function0<Unit>.suspendConversion0() {
|
||||
callee.invoke()
|
||||
}
|
||||
|
||||
|
||||
::suspendConversion0
|
||||
})
|
||||
}
|
||||
|
||||
fun testExtAsExt(fn: @ExtensionFunctionType Function1<Int, Unit>) {
|
||||
useSuspendExt(sfn = { //BLOCK
|
||||
local suspend fun suspendConversion0(p0: Int) {
|
||||
fn.invoke(p1 = p0)
|
||||
local suspend fun @ExtensionFunctionType Function1<Int, Unit>.suspendConversion0(p0: Int) {
|
||||
callee.invoke(p1 = p0)
|
||||
}
|
||||
|
||||
|
||||
::suspendConversion0
|
||||
})
|
||||
}
|
||||
|
||||
fun testExtAsSimple(fn: @ExtensionFunctionType Function1<Int, Unit>) {
|
||||
useSuspendArg(sfn = { //BLOCK
|
||||
local suspend fun suspendConversion0(p0: Int) {
|
||||
fn.invoke(p1 = p0)
|
||||
local suspend fun Function1<Int, Unit>.suspendConversion0(p0: Int) {
|
||||
callee.invoke(p1 = p0)
|
||||
}
|
||||
|
||||
|
||||
::suspendConversion0
|
||||
})
|
||||
}
|
||||
|
||||
fun testSimpleAsExt(fn: Function1<Int, Unit>) {
|
||||
useSuspendExt(sfn = { //BLOCK
|
||||
local suspend fun suspendConversion0(p0: Int) {
|
||||
fn.invoke(p1 = p0)
|
||||
local suspend fun @ExtensionFunctionType Function1<Int, Unit>.suspendConversion0(p0: Int) {
|
||||
callee.invoke(p1 = p0)
|
||||
}
|
||||
|
||||
|
||||
::suspendConversion0
|
||||
})
|
||||
}
|
||||
|
||||
fun testSimpleAsSimpleT(fn: Function1<Int, Unit>) {
|
||||
useSuspendArgT<Int>(sfn = { //BLOCK
|
||||
local suspend fun suspendConversion0(p0: Int) {
|
||||
fn.invoke(p1 = p0)
|
||||
local suspend fun Function1<Int, Unit>.suspendConversion0(p0: Int) {
|
||||
callee.invoke(p1 = p0)
|
||||
}
|
||||
|
||||
|
||||
::suspendConversion0
|
||||
})
|
||||
}
|
||||
|
||||
fun testSimpleAsExtT(fn: Function1<Int, Unit>) {
|
||||
useSuspendExtT<Int>(sfn = { //BLOCK
|
||||
local suspend fun suspendConversion0(p0: Int) {
|
||||
fn.invoke(p1 = p0)
|
||||
local suspend fun @ExtensionFunctionType Function1<Int, Unit>.suspendConversion0(p0: Int) {
|
||||
callee.invoke(p1 = p0)
|
||||
}
|
||||
|
||||
|
||||
::suspendConversion0
|
||||
})
|
||||
}
|
||||
|
||||
fun testExtAsSimpleT(fn: @ExtensionFunctionType Function1<Int, Unit>) {
|
||||
useSuspendArgT<Int>(sfn = { //BLOCK
|
||||
local suspend fun suspendConversion0(p0: Int) {
|
||||
fn.invoke(p1 = p0)
|
||||
local suspend fun Function1<Int, Unit>.suspendConversion0(p0: Int) {
|
||||
callee.invoke(p1 = p0)
|
||||
}
|
||||
|
||||
|
||||
::suspendConversion0
|
||||
})
|
||||
}
|
||||
|
||||
fun testExtAsExtT(fn: @ExtensionFunctionType Function1<Int, Unit>) {
|
||||
useSuspendExtT<Int>(sfn = { //BLOCK
|
||||
local suspend fun suspendConversion0(p0: Int) {
|
||||
fn.invoke(p1 = p0)
|
||||
local suspend fun @ExtensionFunctionType Function1<Int, Unit>.suspendConversion0(p0: Int) {
|
||||
callee.invoke(p1 = p0)
|
||||
}
|
||||
|
||||
|
||||
::suspendConversion0
|
||||
})
|
||||
}
|
||||
|
||||
fun <S : Any?> testSimpleSAsSimpleT(fn: Function1<S, Unit>) {
|
||||
useSuspendArgT<S>(sfn = { //BLOCK
|
||||
local suspend fun suspendConversion0(p0: S) {
|
||||
fn.invoke(p1 = p0)
|
||||
local suspend fun Function1<S, Unit>.suspendConversion0(p0: S) {
|
||||
callee.invoke(p1 = p0)
|
||||
}
|
||||
|
||||
|
||||
::suspendConversion0
|
||||
})
|
||||
}
|
||||
|
||||
fun <S : Any?> testSimpleSAsExtT(fn: Function1<S, Unit>) {
|
||||
useSuspendExtT<S>(sfn = { //BLOCK
|
||||
local suspend fun suspendConversion0(p0: S) {
|
||||
fn.invoke(p1 = p0)
|
||||
local suspend fun @ExtensionFunctionType Function1<S, Unit>.suspendConversion0(p0: S) {
|
||||
callee.invoke(p1 = p0)
|
||||
}
|
||||
|
||||
|
||||
::suspendConversion0
|
||||
})
|
||||
}
|
||||
|
||||
fun <S : Any?> testExtSAsSimpleT(fn: @ExtensionFunctionType Function1<S, Unit>) {
|
||||
useSuspendArgT<S>(sfn = { //BLOCK
|
||||
local suspend fun suspendConversion0(p0: S) {
|
||||
fn.invoke(p1 = p0)
|
||||
local suspend fun Function1<S, Unit>.suspendConversion0(p0: S) {
|
||||
callee.invoke(p1 = p0)
|
||||
}
|
||||
|
||||
|
||||
::suspendConversion0
|
||||
})
|
||||
}
|
||||
|
||||
fun <S : Any?> testExtSAsExtT(fn: @ExtensionFunctionType Function1<S, Unit>) {
|
||||
useSuspendExtT<S>(sfn = { //BLOCK
|
||||
local suspend fun suspendConversion0(p0: S) {
|
||||
fn.invoke(p1 = p0)
|
||||
local suspend fun @ExtensionFunctionType Function1<S, Unit>.suspendConversion0(p0: S) {
|
||||
callee.invoke(p1 = p0)
|
||||
}
|
||||
|
||||
|
||||
::suspendConversion0
|
||||
})
|
||||
}
|
||||
|
||||
fun testSmartCastWithSuspendConversion(a: Any) {
|
||||
a as Function0<Unit> /*~> Unit */
|
||||
useSuspend(sfn = { //BLOCK
|
||||
local suspend fun suspendConversion0() {
|
||||
a /*as Function0<Unit> */.invoke()
|
||||
local suspend fun Function0<Unit>.suspendConversion0() {
|
||||
callee.invoke()
|
||||
}
|
||||
|
||||
|
||||
::suspendConversion0
|
||||
})
|
||||
}
|
||||
|
||||
@@ -152,11 +179,12 @@ fun testSmartCastOnVarWithSuspendConversion(a: Any) {
|
||||
var b: Any = a
|
||||
b as Function0<Unit> /*~> Unit */
|
||||
useSuspend(sfn = { //BLOCK
|
||||
val tmp0: Function0<Unit> = b /*as Function0<Unit> */
|
||||
local suspend fun suspendConversion1() {
|
||||
tmp0.invoke()
|
||||
local suspend fun Function0<Unit>.suspendConversion0() {
|
||||
callee.invoke()
|
||||
}
|
||||
|
||||
|
||||
::suspendConversion0
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user