Delete generated test cases, move testData to boxWithStdlib
This commit is contained in:
committed by
Alexander Udalov
parent
b311255d96
commit
714708eac7
+15
@@ -0,0 +1,15 @@
|
||||
class Bar(val name: String)
|
||||
|
||||
abstract class Foo {
|
||||
public abstract fun foo(): String
|
||||
}
|
||||
|
||||
fun box(): String {
|
||||
return object: Foo() {
|
||||
inner data class NestedFoo(val bar: Bar)
|
||||
|
||||
override fun foo(): String {
|
||||
return NestedFoo(Bar("Fail")).copy(bar = Bar("OK")).bar.name
|
||||
}
|
||||
}.foo()
|
||||
}
|
||||
Reference in New Issue
Block a user