#KT-3023 Fixed

This commit is contained in:
Alexey Sedunov
2012-11-07 18:33:21 +04:00
parent 415b6f8efe
commit 8cff709bfb
4 changed files with 47 additions and 1 deletions
@@ -0,0 +1,15 @@
class Bar(val name: String)
class Baz {
class Foo() {
data class NestedFoo(val bar: Bar)
fun foo(): String {
return NestedFoo(Bar("FAIL")).copy(bar = Bar("OK")).bar.name
}
}
}
fun box(): String {
return Baz().Foo().foo()
}