27 lines
393 B
Kotlin
Vendored
27 lines
393 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
|
|
|
|
<!UNRESOLVED_REFERENCE!>A::foo<!>
|
|
<!UNRESOLVED_REFERENCE!>A::bar<!>
|
|
}
|