mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-04-23 00:21:29 +00:00
1. Enum entry fields don't have nullability annotations. 2. Enum class special methods (values, valueOf) are not 'final' (although they probably should be, javac generates corresponding methods without ACC_FINAL flag). 3. Enum class special methods don't have nullability annotations. 4. Don't generate synthetic accessor for enum entry class constructor. KT-37019 KT-37020 KT-37021
21 lines
288 B
Kotlin
Vendored
21 lines
288 B
Kotlin
Vendored
enum class SimpleEnum {
|
|
A, B, C
|
|
}
|
|
|
|
enum class WithConstructor(val x: String) {
|
|
A("1"), B("2"), C("3")
|
|
}
|
|
|
|
enum class WithEntryClass {
|
|
A {
|
|
override fun foo() {}
|
|
}
|
|
;
|
|
abstract fun foo()
|
|
}
|
|
|
|
annotation class Ann
|
|
|
|
enum class WithAnnotations {
|
|
@Ann A, @Ann B
|
|
} |