Files
kotlin-fork/compiler/testData/diagnostics/tests/callableReference/bound/object.fir.kt
T

12 lines
157 B
Kotlin
Vendored

// !CHECK_TYPE
object Obj {
fun foo() {}
val bar = 2
}
fun test() {
checkSubtype<() -> Unit>(Obj::foo)
checkSubtype<() -> Int>(Obj::bar)
}