Files
kotlin-fork/plugins/kapt3/kapt3-compiler/testData/converter/enumInCompanion.kt
T
Alexander Udalov ebb9659e03 Add mode to run kapt with JVM IR, use in tests
Currently JVM IR is not supported in kapt, so almost all tests are
failing, and thus are muted with IGNORE_BACKEND.

 #KT-49682
2022-02-08 20:15:13 +01:00

48 lines
755 B
Kotlin
Vendored

// IGNORE_BACKEND: JVM_IR
class Test {
private val foo = Example.FOO
companion object {
enum class Example { FOO }
}
}
class Test2 {
private val foo = Example.FOO
companion object Amigo {
enum class Example { FOO }
}
}
class Test3 {
private val foo = Amigo.Example.FOO
object Amigo {
enum class Example { FOO }
}
}
class Test4 {
private val foo = Foo.constProperty
companion object {
object Foo {
const val constProperty = 1
}
}
}
class Test5 {
private val foo = Amigos.Companion.Goo.Example.FOO
class Amigos {
companion object {
class Goo {
enum class Example { FOO }
}
}
}
}