blob: 22b6169d980996c17a54ab69633c4fe070714221 [file]
import org.jetbrains.kotlin.plugin.sandbox.CompanionWithFoo
fun context() {
@CompanionWithFoo
class SomeClass {
@CompanionWithFoo
<!NESTED_CLASS_NOT_ALLOWED!>class Nested<!>
}
fun takeInt(x: Int) {}
fun test() {
takeInt(SomeClass.foo())
takeInt(SomeClass.Companion.foo())
takeInt(SomeClass.Nested.foo())
takeInt(SomeClass.Nested.Companion.foo())
}
}