Adjust testData: get rid of obsolete annotations

This commit is contained in:
Denis Zharkov
2015-06-09 20:30:52 +03:00
parent 053dcf3abf
commit c9f79c2d05
193 changed files with 322 additions and 322 deletions
@@ -1,4 +1,4 @@
package test
[AnnotatedAnnotation]
@[AnnotatedAnnotation]
public annotation class AnnotatedAnnotation
@@ -4,6 +4,6 @@ annotation class Anno
class Class {
companion object {
[Anno] var property: Int = 42
@[Anno] var property: Int = 42
}
}
@@ -3,4 +3,4 @@ package test
annotation class Anno(val value: String)
class Constructor [Anno(value = "string")]()
class Constructor @Anno(value = "string") constructor()
@@ -4,5 +4,5 @@ annotation class Anno
class Class {
val property: Int
[Anno] get() = 42
@[Anno] get() = 42
}
@@ -3,5 +3,5 @@ package test
annotation class Anno
class Class {
[Anno] var property: Int = 42
@[Anno] var property: Int = 42
}
@@ -4,5 +4,5 @@ annotation class Anno
class Class {
var property: Int = 42
[Anno] set(value) { }
@[Anno] set(value) { }
}
@@ -3,4 +3,4 @@ package test
annotation class Anno
val property: Int
[Anno] get() = 42
@[Anno] get() = 42
@@ -2,4 +2,4 @@ package test
annotation class Anno
[Anno] var property: Int = 42
@[Anno] var property: Int = 42
@@ -3,4 +3,4 @@ package test
annotation class Anno
var property: Int = 42
[Anno] set(value) { }
@[Anno] set(value) { }
@@ -3,4 +3,4 @@ package test
annotation class A
annotation class B
class Class([A] val x: Int, [B] y: String)
class Class(@[A] val x: Int, @[B] y: String)
@@ -3,4 +3,4 @@ package test
annotation class A
annotation class B
enum class E([A] val x: String, [B] val y: Int)
enum class E(@[A] val x: String, @[B] val y: Int)
@@ -2,4 +2,4 @@ package test
annotation class A
fun Int.foo([A] x: Int) {}
fun Int.foo(@[A] x: Int) {}
@@ -4,5 +4,5 @@ package test
annotation class Anno
class Class {
fun String.foo([Anno] x: Int) = 42
fun String.foo(@[Anno] x: Int) = 42
}
@@ -5,5 +5,5 @@ annotation class A
class Class {
var Int.foo: Int
get() = this
set([A] value) {}
set(@[A] value) {}
}
@@ -3,5 +3,5 @@ package test
annotation class Anno
class Class {
fun foo([Anno] x: String) {}
fun foo(@[Anno] x: String) {}
}
@@ -4,5 +4,5 @@ package test
annotation class Anno
interface Trait {
fun foo([Anno] x: String) = 42
fun foo(@[Anno] x: String) = 42
}
@@ -4,7 +4,7 @@ package test
annotation class A(val s: String)
class Outer {
class Nested([A("nested")] val x: String)
class Nested(@[A("nested")] val x: String)
inner class Inner([A("inner")] val y: String)
inner class Inner(@[A("inner")] val y: String)
}
@@ -5,6 +5,6 @@ annotation class B
annotation class C
annotation class D
fun foo([A B] x: Int, [A C] y: Double, [B C D] z: String) {}
fun foo(@[A B] x: Int, @[A C] y: Double, @[B C D] z: String) {}
fun bar([A B C D] x: Int) {}
fun bar(@[A B C D] x: Int) {}
@@ -5,5 +5,5 @@ annotation class A
class Class {
var foo: Int
get() = 42
set([A] value) {}
set(@[A] value) {}
}
@@ -2,4 +2,4 @@ package test
annotation class Anno
fun foo([Anno] x: Int) {}
fun foo(@[Anno] x: Int) {}
@@ -5,4 +5,4 @@ annotation class B
var foo: Int
get() = 42
set([A B] value) {}
set(@[A B] value) {}
@@ -3,6 +3,6 @@ package test
annotation class Anno
class Class {
[Anno] val property: Int
@[Anno] val property: Int
get() = 42
}
@@ -4,7 +4,7 @@ annotation class Anno
class Class {
companion object {
[Anno] val property: Int
@[Anno] val property: Int
get() = 42
}
}
@@ -5,12 +5,12 @@ annotation class StringAnno
annotation class DoubleAnno
class Class {
[IntAnno] val Int.extension: Int
@[IntAnno] val Int.extension: Int
get() = this
[StringAnno] val String.extension: String
@[StringAnno] val String.extension: String
get() = this
[DoubleAnno] val Double.extension: Int
@[DoubleAnno] val Double.extension: Int
get() = 42
}
@@ -4,11 +4,11 @@ annotation class IntAnno
annotation class StringAnno
annotation class DoubleAnno
[IntAnno] val Int.extension: Int
@[IntAnno] val Int.extension: Int
get() = this
[StringAnno] val String.extension: String
@[StringAnno] val String.extension: String
get() = this
[DoubleAnno] val Double.extension: Int
@[DoubleAnno] val Double.extension: Int
get() = 42
@@ -4,6 +4,6 @@ annotation class Anno
class Class {
interface Trait {
[Anno] val property: Int
@[Anno] val property: Int
}
}
@@ -2,5 +2,5 @@ package test
annotation class Anno
[Anno] val property: Int
@[Anno] val property: Int
get() = 42
@@ -3,5 +3,5 @@ package test
annotation class Anno
interface Trait {
[Anno] val property: Int
@[Anno] val property: Int
}
@@ -4,7 +4,7 @@ annotation class Anno
interface Trait {
companion object {
[Anno] val property: Int
@[Anno] val property: Int
get() = 42
}
}
@@ -5,9 +5,9 @@ import org.jetbrains.annotations.*
public interface LoadIterable<T> {
Mutable
public fun getIterable(): MutableIterable<T>?
public fun setIterable([Mutable] p0: MutableIterable<T>?)
public fun setIterable(@Mutable p0: MutableIterable<T>?)
ReadOnly
public fun getReadOnlyIterable(): Iterable<T>?
public fun setReadOnlyIterable([ReadOnly] p0: Iterable<T>?)
public fun setReadOnlyIterable(@ReadOnly p0: Iterable<T>?)
}
@@ -3,7 +3,7 @@ package test
import org.jetbrains.annotations.*
public interface LoadIterableWithConflict<T> {
[ReadOnly] [Mutable]
@ReadOnly @Mutable
public fun getIterable(): MutableIterable<T>?
public fun setIterable([ReadOnly] [Mutable] p0: MutableIterable<T>?)
public fun setIterable(@ReadOnly @Mutable p0: MutableIterable<T>?)
}
@@ -5,9 +5,9 @@ import org.jetbrains.annotations.*
public interface LoadIterableWithNullability<T> {
Mutable
public fun getIterable(): MutableIterable<T>
public fun setIterable([Mutable] p0: MutableIterable<T>)
public fun setIterable(@Mutable p0: MutableIterable<T>)
ReadOnly
public fun getReadOnlyIterable(): Iterable<T>
public fun setReadOnlyIterable([ReadOnly] p0: Iterable<T>)
public fun setReadOnlyIterable(@ReadOnly p0: Iterable<T>)
}
@@ -7,11 +7,11 @@ public interface LoadIterableWithPropagation {
public interface LoadIterable<T> {
Mutable
public fun getIterable(): MutableIterable<T>?
public fun setIterable([Mutable] p0: MutableIterable<T>?)
public fun setIterable(@Mutable p0: MutableIterable<T>?)
ReadOnly
public fun getReadOnlyIterable(): Iterable<T>?
public fun setReadOnlyIterable([ReadOnly] p0: Iterable<T>?)
public fun setReadOnlyIterable(@ReadOnly p0: Iterable<T>?)
}
public open class LoadIterableImpl<T> : LoadIterable<T> {
@@ -4,15 +4,15 @@ import kotlin.platform.*
annotation class A(val s: String)
[platformName("bar")]
@platformName("bar")
A("1")
fun foo() = "foo"
A("2")
var v: Int = 1
[platformName("vget")]
[A("3")]
@platformName("vget")
@A("3")
get
[platformName("vset")]
[A("4")]
@platformName("vset")
@A("4")
set