[K/N][Tests] Adjust moved codegen tests to new infra
^KT-61259
This commit is contained in:
committed by
Space Team
parent
71a834b778
commit
73032213f0
@@ -1,3 +1,4 @@
|
||||
import kotlin.test.*
|
||||
interface I {
|
||||
fun foo(): Int
|
||||
}
|
||||
@@ -10,5 +11,10 @@ fun main(args: Array<String>) {
|
||||
lateinit var a: I
|
||||
if (args.size == 0)
|
||||
a = A()
|
||||
println(a.foo())
|
||||
}
|
||||
assertEquals(42, a.foo())
|
||||
}
|
||||
|
||||
fun box(): String {
|
||||
main(emptyArray())
|
||||
return "OK"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user