blob: 1f289152f1fd67a88b7de0f23bff9f11dc861cc7 [file] [log] [blame]
// 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()
}
}