Delete generated test cases, move testData to boxWithStdlib
This commit is contained in:
committed by
Alexander Udalov
parent
b311255d96
commit
714708eac7
@@ -0,0 +1,14 @@
|
||||
data class A(val a: Foo<String>) {}
|
||||
|
||||
class Foo<T>(val a: T) { }
|
||||
|
||||
fun box() : String {
|
||||
val f1 = Foo("a")
|
||||
val f2 = Foo("b")
|
||||
val a = A(f1)
|
||||
val b = a.copy(f2)
|
||||
if (b.a.a == "b") {
|
||||
return "OK"
|
||||
}
|
||||
return "fail"
|
||||
}
|
||||
Reference in New Issue
Block a user