Files
kotlin-fork/compiler/testData/diagnostics/tests/inner/nestedClassNotAllowed.kt
T
Alexander Udalov 0b51a6cae0 Disallow nested classes within inner & local classes
#KT-1174 In Progress
2013-01-16 23:11:45 +04:00

26 lines
391 B
Kotlin

class A {
inner class B {
class <!NESTED_CLASS_NOT_ALLOWED!>C<!>
}
fun foo() {
class B {
class <!NESTED_CLASS_NOT_ALLOWED!>C<!>
}
}
}
fun foo() {
class B {
class <!NESTED_CLASS_NOT_ALLOWED!>C<!>
}
}
enum class E {
E1 {
// Not allowed in Java, but no reason to disallow in Kotlin
class D
}
}