blob: 173ec81fc8dfa8389af5a73ea305e9584527cde2 [file]
// IGNORE_NATIVE: mode=ONE_STAGE_MULTI_MODULE
// ^Reason: KT-82482
import org.jetbrains.kotlin.plugin.sandbox.CompanionWithFoo
fun box(): String {
@CompanionWithFoo
class SomeClass
fun takeInt(x: Int) {
if (x != 10) throw IllegalArgumentException()
}
fun test() {
takeInt(SomeClass.foo())
takeInt(SomeClass.Companion.foo())
}
test()
return "OK"
}