mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-08 15:53:19 +00:00
Check Retention annotation writing annotations in bytecode
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
import java.lang.annotation.Retention
|
||||
import java.lang.annotation.RetentionPolicy
|
||||
|
||||
Ann class MyClass
|
||||
|
||||
Retention(RetentionPolicy.CLASS)
|
||||
annotation class Ann
|
||||
|
||||
// 1 @LAnn;()
|
||||
@@ -0,0 +1,9 @@
|
||||
import java.lang.annotation.Retention
|
||||
import java.lang.annotation.RetentionPolicy
|
||||
|
||||
Ann class MyClass
|
||||
|
||||
Retention(RetentionPolicy.RUNTIME)
|
||||
annotation class Ann
|
||||
|
||||
// 1 @LAnn;()
|
||||
@@ -0,0 +1,9 @@
|
||||
import java.lang.annotation.Retention
|
||||
import java.lang.annotation.RetentionPolicy
|
||||
|
||||
Ann class MyClass
|
||||
|
||||
Retention(RetentionPolicy.SOURCE)
|
||||
annotation class Ann
|
||||
|
||||
// 0 @LAnn;()
|
||||
Reference in New Issue
Block a user