blob: 637d3e2f7bc5b2b351c2fc37bd79cdf6ea74a3be [file]
// IGNORE_NATIVE: mode=ONE_STAGE_MULTI_MODULE
// ^Reason: KT-82482
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"
}