Add recovery for enum declaration without 'class' keyword
^KT-13703 Fixed
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
enum A { X, Y }
|
||||
|
||||
private enum B {
|
||||
X, Y
|
||||
}
|
||||
|
||||
internal Q {
|
||||
X, Y
|
||||
}
|
||||
|
||||
fun foo() {
|
||||
// No recovery here
|
||||
enum A { X, Y }
|
||||
|
||||
private enum B {
|
||||
X, Y
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user