Prohibit non-inner classes in enum entries since 1.3
This commit is contained in:
@@ -20,6 +20,6 @@ fun foo() {
|
||||
enum class E {
|
||||
E1 {
|
||||
// Not allowed in Java, but no reason to disallow in Kotlin
|
||||
class D
|
||||
<!NESTED_CLASS_NOT_ALLOWED_SINCE_1_3!>class D<!>
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user