mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-10 15:53:46 +00:00
22 lines
426 B
Kotlin
Vendored
22 lines
426 B
Kotlin
Vendored
// WITH_REFLECT
|
|
|
|
import kotlin.reflect.*
|
|
import kotlin.test.assertTrue
|
|
|
|
interface Interface
|
|
annotation class Anno(val x: Int)
|
|
object Obj
|
|
|
|
class C {
|
|
companion object
|
|
}
|
|
|
|
fun box(): String {
|
|
assertTrue(Interface::class.constructors.isEmpty())
|
|
assertTrue(Anno::class.constructors.isEmpty())
|
|
assertTrue(Obj::class.constructors.isEmpty())
|
|
assertTrue(C.Companion::class.constructors.isEmpty())
|
|
|
|
return "OK"
|
|
}
|