Get rid of deprecated annotations in testData

This commit is contained in:
Denis Zharkov
2015-09-14 17:40:41 +03:00
parent eebe66e041
commit bae3320d52
257 changed files with 433 additions and 463 deletions
@@ -6,9 +6,9 @@ annotation class JustAnnotation(val annotation: Empty)
annotation class AnnotationArray(val annotationArray: Array<JustAnnotation>)
JustAnnotation(Empty())
AnnotationArray(array())
@JustAnnotation(Empty())
@AnnotationArray(array())
class C1
AnnotationArray(array(JustAnnotation(Empty()), JustAnnotation(Empty())))
@AnnotationArray(array(JustAnnotation(Empty()), JustAnnotation(Empty())))
class C2
@@ -10,9 +10,9 @@ annotation class JustEnum(val weapon: Weapon)
annotation class EnumArray(val enumArray: Array<Weapon>)
JustEnum(Weapon.SCISSORS)
EnumArray(array())
@JustEnum(Weapon.SCISSORS)
@EnumArray(array())
class C1
EnumArray(array(Weapon.PAPER, Weapon.ROCK))
@EnumArray(array(Weapon.PAPER, Weapon.ROCK))
class C2
@@ -11,7 +11,7 @@ annotation class PrimitiveArrays(
val booleanArray: BooleanArray
)
PrimitiveArrays(
@PrimitiveArrays(
byteArray = byteArray(-7, 7),
charArray = charArray('%', 'z'),
shortArray = shortArray(239),
@@ -23,7 +23,7 @@ PrimitiveArrays(
)
class C1
PrimitiveArrays(
@PrimitiveArrays(
byteArray = byteArray(),
charArray = charArray(),
shortArray = shortArray(),
@@ -11,7 +11,7 @@ annotation class Primitives(
val boolean: Boolean
)
Primitives(
@Primitives(
byte = 7,
char = '%',
short = 239,
@@ -23,7 +23,7 @@ Primitives(
)
class C
Primitives(
@Primitives(
byte = 7: Byte,
char = '%': Char,
short = 239: Short,
@@ -4,9 +4,9 @@ annotation class JustString(val string: String)
annotation class StringArray(val stringArray: Array<String>)
JustString("kotlin")
StringArray(array())
@JustString("kotlin")
@StringArray(array())
class C1
StringArray(array("java", ""))
@StringArray(array("java", ""))
class C2
@@ -4,4 +4,4 @@ enum class My { ALPHA, BETA, OMEGA }
annotation class ann(vararg val m: My)
ann(My.ALPHA, My.BETA) annotation class annotated
@ann(My.ALPHA, My.BETA) annotation class annotated
@@ -3,35 +3,35 @@ package test
annotation class anno(val x: String)
anno("top level function")
fun f1(anno("top level function parameter") p: Int) {}
@anno("top level function")
fun f1(@anno("top level function parameter") p: Int) {}
anno("top level property")
@anno("top level property")
val p1 = null
anno("extension function")
fun Long.f2(anno("extension function parameter") p: Int) {}
@anno("extension function")
fun Long.f2(@anno("extension function parameter") p: Int) {}
anno("extension property")
@anno("extension property")
val Double.p2: Double get() = null
anno("top level class")
@anno("top level class")
class C1 @anno("constructor") constructor() {
anno("member function")
fun f3(anno("member function parameter") p: Int) {}
@anno("member function")
fun f3(@anno("member function parameter") p: Int) {}
anno("member property")
@anno("member property")
val p3 = null
anno("member extension function")
@anno("member extension function")
fun String.f4() {}
anno("member extension property")
@anno("member extension property")
val Int.v4: Int get() = this
anno("nested class")
@anno("nested class")
class C2
anno("companion object")
@anno("companion object")
companion object {}
}
@@ -5,10 +5,10 @@ class A {
fun foo() {
@Ann("class") class Local {
Ann("fun") fun foo(): Local = this
@Ann("fun") fun foo(): Local = this
@field:Ann("val") val x = foo()
Ann("inner") inner class Inner
@Ann("inner") inner class Inner
}
}
}