// WITH_STDLIB
import kotlin.test.*
interface I {
    fun foo(): Int
}

class A : I {
    override fun foo() = 42
}

fun main(args: Array<String>) {
    lateinit var a: I
    if (args.size == 0)
        a = A()
    assertEquals(42, a.foo())
}

fun box(): String {
    main(emptyArray())
    return "OK"
}
