Files
Alexander Udalov 25edf64daf Psi2ir: support mode without generation of bodies
This is needed for kapt + JVM IR.

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

46 lines
728 B
Kotlin
Vendored

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 }
}
}
}
}