annotation() now has no arguments. Syntax migration to Retention / Repeatable / MustBeDocumented combination
Deprecated test for annotation(params) completion deleted. A lot of tests changed.
This commit is contained in:
committed by
Mikhail Glukhikh
parent
86f35acf9e
commit
eab288bdd7
@@ -1,6 +1,7 @@
|
||||
package a
|
||||
|
||||
annotation(retention = AnnotationRetention.RUNTIME) class Ann
|
||||
@Retention(AnnotationRetention.RUNTIME)
|
||||
annotation class Ann
|
||||
|
||||
interface Tr {
|
||||
Ann
|
||||
|
||||
@@ -11,4 +11,5 @@ public val c: Char = '\u03c0' // pi symbol
|
||||
|
||||
public val str: String = ":)"
|
||||
|
||||
public annotation(retention = AnnotationRetention.RUNTIME) class AnnotationClass(public val value: String)
|
||||
@Retention(AnnotationRetention.RUNTIME)
|
||||
public annotation class AnnotationClass(public val value: String)
|
||||
+2
-1
@@ -6,7 +6,8 @@ class MyClass1
|
||||
Ann(i2, s2, f2, d2, l2, b2, bool2, c2, str2)
|
||||
class MyClass2
|
||||
|
||||
annotation(retention = AnnotationRetention.RUNTIME) class Ann(
|
||||
@Retention(AnnotationRetention.RUNTIME)
|
||||
annotation class Ann(
|
||||
val i: Int,
|
||||
val s: Short,
|
||||
val f: Float,
|
||||
|
||||
Reference in New Issue
Block a user