Replace annotations with brackets in testData

Just in tests that changed after deprecation
This commit is contained in:
Denis Zharkov
2015-05-06 14:58:59 +03:00
parent 5bc7c9600f
commit 849b8acbf8
87 changed files with 224 additions and 224 deletions
@@ -4,7 +4,7 @@ fun unused(<warning descr="[UNUSED_PARAMETER] Parameter 'p' is never used">p</wa
}
[MyTestAnnotation]
@MyTestAnnotation
fun unusedButAnnotated(p: Int) {
}
+1 -1
View File
@@ -7,7 +7,7 @@ fun <info descr="null">bar</info>(<info descr="null">block</info>: () -> <info d
<info descr="null" textAttributesKey="KOTLIN_BUILTIN_ANNOTATION">@private</info>
fun <info descr="null">foo</info>() {
1 + [<info descr="null" textAttributesKey="KOTLIN_ANNOTATION">Ann</info>] 2
1 + <info descr="null" textAttributesKey="KOTLIN_ANNOTATION">@Ann</info> 2
<info descr="null" textAttributesKey="KOTLIN_ANNOTATION">@Ann</info> 3 + 4
@@ -7,6 +7,6 @@ class <info textAttributesKey="KOTLIN_CLASS">TheClass</info> : <info textAttribu
<info textAttributesKey="KOTLIN_BUILTIN_ANNOTATION">annotation</info> class <info textAttributesKey="KOTLIN_ANNOTATION">magnificent</info>
<info textAttributesKey="KOTLIN_BUILTIN_ANNOTATION">annotation</info> class <info textAttributesKey="KOTLIN_ANNOTATION">deprecated</info>
[<info textAttributesKey="KOTLIN_ANNOTATION">deprecated</info>]
<info textAttributesKey="KOTLIN_ANNOTATION">@deprecated</info>
<info textAttributesKey="KOTLIN_ANNOTATION">magnificent</info> <info textAttributesKey="KOTLIN_BUILTIN_ANNOTATION">abstract</info> class <info textAttributesKey="KOTLIN_ABSTRACT_CLASS">AbstractClass</info><<info textAttributesKey="KOTLIN_TYPE_PARAMETER">T</info>> {
}
@@ -9,13 +9,13 @@ fun test() {
class MyClass() {
public val test1: String = ""
[deprecated("Use A instead")] get
@deprecated("Use A instead") get
public var test2: String = ""
[deprecated("Use A instead")] get
@deprecated("Use A instead") get
deprecated("Use A instead") public val test3: String = ""
[deprecated("Use A instead")] get
@deprecated("Use A instead") get
}
// NO_CHECK_INFOS
@@ -19,11 +19,11 @@ fun test() {
class MyClass() {
public var test1: Int = 0
[deprecated("Use A instead")] set
@deprecated("Use A instead") set
}
public var test2: Int = 0
[deprecated("Use A instead")] set
@deprecated("Use A instead") set
// NO_CHECK_INFOS
// NO_CHECK_WEAK_WARNINGS
@@ -3,6 +3,6 @@
// ERROR: Unresolved reference: foo
// ERROR: Unresolved reference: bar
[foo(1, "2", <caret>bar("3", 4))] fun test() {
@foo(1, "2", <caret>bar("3", 4)) fun test() {
}
@@ -1,7 +1,7 @@
// "class com.intellij.codeInspection.SuppressIntentionAction" "false"
// ACTION: Suppress 'INTEGER_OVERFLOW' for fun foo
[Ann(Integer.MAX_VALUE<caret> + 1)]
@Ann(Integer.MAX_VALUE<caret> + 1)
fun foo() {}
annotation class Ann(val b: Int)