Disallow nested classes within inner & local classes

#KT-1174 In Progress
This commit is contained in:
Alexander Udalov
2012-12-03 21:18:46 +04:00
parent a0caa88adf
commit 0b51a6cae0
8 changed files with 54 additions and 4 deletions
@@ -6,7 +6,7 @@ abstract class Foo {
fun box(): String {
return object: Foo() {
data class NestedFoo(val bar: Bar)
inner data class NestedFoo(val bar: Bar)
override fun foo(): String {
return NestedFoo(Bar("Fail")).copy(bar = Bar("OK")).bar.name