blob: d7f8e0c058a3404493d6ee24de71dd214a61a639 [file]
import org.jetbrains.kotlin.plugin.sandbox.CompanionWithFoo
@CompanionWithFoo
class SomeClass
fun takeInt(x: Int) {
if (x != 10) throw IllegalArgumentException()
}
fun test() {
takeInt(SomeClass.foo())
takeInt(SomeClass.Companion.foo())
}
fun box(): String {
test()
return "OK"
}