963747ce04
- Do not process conflicts twice wgen moving a directory - Check move target before resolving usage context declaration - Skip visibility check for usages referring to public declarations - Skip module conflict check for declarations with unchanged module - Do not report lambdas as usage container (use enclosing declaration)
27 lines
527 B
Kotlin
Vendored
27 lines
527 B
Kotlin
Vendored
// WITH_RUNTIME
|
|
// SHOULD_FAIL_WITH: 'foo' in class B will require class instance, 'foo' in function test() will require class instance, 'foo' in function test() will require class instance, 'foo' in function test() will require class instance
|
|
class A {
|
|
companion object {
|
|
class B {
|
|
init {
|
|
foo()
|
|
}
|
|
}
|
|
|
|
fun <caret>foo() {
|
|
|
|
}
|
|
}
|
|
|
|
fun bar() {
|
|
foo()
|
|
}
|
|
}
|
|
|
|
fun test() {
|
|
A.foo()
|
|
A.Companion.foo()
|
|
with(A) {
|
|
foo()
|
|
}
|
|
} |