Files
Pavel Mikhailovskii 2002542ad2 Stub generation infrastructure (except for metadata generation) for KAPT+K2
This commit includes the basic Java stubs generation infrastructure and
the corresponding tests. The main entry point is called
Kapt4StubGenerator. Calls to it from production code will be added in a
separate commit.

 #KT-51982
2023-08-09 01:17:21 +00:00

29 lines
534 B
Kotlin
Vendored

// !LANGUAGE: +EnumEntries
enum class Enum1 {
BLACK, WHITE
}
annotation class Anno1(val value: String)
enum class Enum2(@Anno1("first") val col: String, @Anno1("second") val col2: Int) {
RED("red", 1), WHITE("white", 2);
fun color() = col
private fun privateEnumFun() {}
public fun publicEnumFun() {}
}
enum class Nested1 {
WHITE {
enum class Nested2 {
BLACK {
enum class Nested3 { RED }
}
}
};
}
interface I {
enum class Nested { WHITE }
}