[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
@@ -3,8 +3,6 @@
|
||||
* that can be found in the LICENSE file.
|
||||
*/
|
||||
|
||||
package codegen.funInterface.kt49384
|
||||
|
||||
import kotlin.test.*
|
||||
|
||||
interface A<T>
|
||||
@@ -17,20 +15,9 @@ class B<T> {
|
||||
}
|
||||
}
|
||||
|
||||
@Test
|
||||
fun test1() {
|
||||
fun box(): String {
|
||||
val b = B<Any>()
|
||||
assertEquals(b, b) // Just to ensure B is not deleted by DCE
|
||||
}
|
||||
|
||||
fun interface Foo<T> {
|
||||
fun same(obj: T): T
|
||||
}
|
||||
|
||||
fun getSame(obj: A<out Any>, foo: Foo<A<out Any>>) = foo.same(obj)
|
||||
|
||||
@Test
|
||||
fun test2() {
|
||||
val obj = object : A<Any> {}
|
||||
assertSame(obj, getSame(obj) { it })
|
||||
return "OK"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user