K2: add test for KT-56954
This commit is contained in:
committed by
Space Team
parent
f946ddeb40
commit
7a6ff5de34
+9
@@ -0,0 +1,9 @@
|
||||
// WITH_REFLECT
|
||||
|
||||
import kotlin.reflect.KFunction0
|
||||
|
||||
fun foo(arg: KFunction0<Unit>) {}
|
||||
|
||||
fun main() {
|
||||
foo(fun() {}) // K1: TYPE_MISMATCH, K2: ok in compile-time & CCE at run-time
|
||||
}
|
||||
Reference in New Issue
Block a user