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

27 lines
339 B
Kotlin
Vendored

// !DIAGNOSTICS: -UNUSED_EXPRESSION
import Obj.ext
import A.Companion.ext2
object Obj {
val String.ext: String get() = this
}
class A {
companion object {
val String.ext2: String get() = this
}
}
fun test() {
String::ext
Obj::ext
String::ext2
A.Companion::ext2
A::ext2
A::foo
A::bar
}