2002542ad2
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
29 lines
534 B
Kotlin
Vendored
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 }
|
|
}
|