[Test] Move KotlinAgainstKotlin tests under BlackBoxCodegen tests
This commit is contained in:
Vendored
+24
@@ -0,0 +1,24 @@
|
||||
// !LANGUAGE: +InlineClasses
|
||||
|
||||
// MODULE: lib
|
||||
// FILE: 1.kt
|
||||
|
||||
inline class IC(val s: String)
|
||||
|
||||
abstract class A {
|
||||
fun foo(s: String) = IC(s)
|
||||
}
|
||||
|
||||
open class C : A()
|
||||
|
||||
class D: C()
|
||||
|
||||
// MODULE: main(lib)
|
||||
// FILE: 2.kt
|
||||
|
||||
fun box(): String {
|
||||
var res = C().foo("OK").s
|
||||
if (res != "OK") return "FAIL 1 $res"
|
||||
res = D().foo("OK").s
|
||||
return res
|
||||
}
|
||||
Reference in New Issue
Block a user