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
@@ -1,8 +1,8 @@
class Bar(val name: String)
class Baz {
class Foo() {
data class NestedFoo(val bar: Bar)
inner class Foo() {
inner data class NestedFoo(val bar: Bar)
fun foo(): String {
return NestedFoo(Bar("FAIL")).copy(bar = Bar("OK")).bar.name