Fix failing tests
This commit is contained in:
@@ -1,9 +0,0 @@
|
||||
FILE fqName:<root> fileName:/kt36963.kt
|
||||
FUN name:foo visibility:public modality:FINAL <> () returnType:kotlin.Unit
|
||||
BLOCK_BODY
|
||||
FUN name:test visibility:public modality:FINAL <> () returnType:kotlin.reflect.KFunction0<kotlin.Unit>
|
||||
BLOCK_BODY
|
||||
RETURN type=kotlin.Nothing from='public final fun test (): kotlin.reflect.KFunction0<kotlin.Unit> declared in <root>'
|
||||
CALL 'public final fun CHECK_NOT_NULL <T0> (arg0: T0 of kotlin.internal.ir.CHECK_NOT_NULL?): T0 of kotlin.internal.ir.CHECK_NOT_NULL declared in kotlin.internal.ir' type=kotlin.reflect.KFunction0<kotlin.Unit> origin=EXCLEXCL
|
||||
<T0>: kotlin.reflect.KFunction0<kotlin.Unit>
|
||||
arg0: FUNCTION_REFERENCE 'public final fun foo (): kotlin.Unit declared in <root>' type=kotlin.reflect.KFunction0<kotlin.Unit> origin=null reflectionTarget=<same>
|
||||
@@ -1,3 +1,4 @@
|
||||
// FIR_IDENTICAL
|
||||
fun foo() {}
|
||||
|
||||
fun test() = (::foo)!!
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
fun foo() {
|
||||
}
|
||||
|
||||
fun test(): ErrorType {
|
||||
fun test(): KFunction0<Unit> {
|
||||
return CHECK_NOT_NULL<KFunction0<Unit>>(arg0 = ::foo)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user