mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-12 00:21:32 +00:00
16 lines
375 B
Kotlin
Vendored
16 lines
375 B
Kotlin
Vendored
// WITH_REFLECT
|
|
|
|
import kotlin.test.assertEquals
|
|
import kotlin.test.assertNotEquals
|
|
|
|
annotation class Anno(val equals: Boolean)
|
|
|
|
fun box(): String {
|
|
val t = Anno::class.constructors.single().call(true)
|
|
val f = Anno::class.constructors.single().call(false)
|
|
assertEquals(true, t.equals)
|
|
assertEquals(false, f.equals)
|
|
assertNotEquals(t, f)
|
|
return "OK"
|
|
}
|