mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-09 00:21:47 +00:00
13 lines
228 B
Kotlin
Vendored
13 lines
228 B
Kotlin
Vendored
//no nested class access via instance reference error
|
|
fun test() {
|
|
A.Companion.f(<!TYPE_MISMATCH!>""<!>)
|
|
}
|
|
|
|
class A() {
|
|
companion object {
|
|
object f {
|
|
operator fun invoke(i: Int) = i
|
|
}
|
|
}
|
|
}
|