Kapt: Enums inside enum values should be forbidden (KT-22582)
This commit is contained in:
@@ -10,4 +10,14 @@ enum class Enum2(@Anno1("first") val col: String, @Anno1("second") val col2: Int
|
||||
|
||||
private fun privateEnumFun() {}
|
||||
public fun publicEnumFun() {}
|
||||
}
|
||||
|
||||
enum class Nested1 {
|
||||
WHITE {
|
||||
enum class Nested2 {
|
||||
BLACK {
|
||||
enum class Nested3 { RED }
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
@@ -60,3 +60,16 @@ public enum Enum2 {
|
||||
int col2) {
|
||||
}
|
||||
}
|
||||
|
||||
////////////////////
|
||||
|
||||
|
||||
import java.lang.System;
|
||||
|
||||
@kotlin.Metadata()
|
||||
public enum Nested1 {
|
||||
/*public static final*/ WHITE /* = new Nested1() */;
|
||||
|
||||
Nested1() {
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user