Fix failing tests

This commit is contained in:
Victor Petukhov
2020-12-25 14:27:18 +03:00
parent 0d40fde713
commit 07b6f0d871
3 changed files with 2 additions and 10 deletions
@@ -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
View File
@@ -1,3 +1,4 @@
// FIR_IDENTICAL
fun foo() {}
fun test() = (::foo)!!
+1 -1
View File
@@ -1,7 +1,7 @@
fun foo() {
}
fun test(): ErrorType {
fun test(): KFunction0<Unit> {
return CHECK_NOT_NULL<KFunction0<Unit>>(arg0 = ::foo)
}