blob: 74c31648740b8d4e08516990c2e0fd46e3b403e2 [file]
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"
}