07d3e3a5bd
`is PropertyDescriptor` check doesn't work for JVM IR where descriptor is created on-the-fly and is an `IrBasedSimpleFunctionDescriptor`. #KT-49682
21 lines
348 B
Kotlin
Vendored
21 lines
348 B
Kotlin
Vendored
class JvmStaticTest {
|
|
companion object {
|
|
@JvmStatic
|
|
val one = 1
|
|
|
|
const val two = 2
|
|
|
|
const val c: Char = 'C'
|
|
}
|
|
|
|
const val three: Byte = 3.toByte()
|
|
const val d: Char = 'D'
|
|
}
|
|
|
|
interface FooComponent {
|
|
companion object {
|
|
@JvmStatic
|
|
fun create(context: String): String = "foo"
|
|
}
|
|
}
|