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
@@ -2,10 +2,10 @@ package foo
annotation class fancy
[fancy]
@fancy
class Foo {
[fancy]
fun baz([fancy] foo : Int) : Int {
return [fancy] 1
@fancy
fun baz(@fancy foo : Int) : Int {
return (@fancy 1)
}
}
@@ -1,3 +1,3 @@
WARNING: compiler/testData/cli/js/diagnosticForUnhandledElements.kt: (8, 21) Parameter 'foo' is never used
ERROR: compiler/testData/cli/js/diagnosticForUnhandledElements.kt: (9, 16) Cannot translate (not supported yet): '[fancy] 1'
COMPILATION_ERROR
WARNING: compiler/testData/cli/js/diagnosticForUnhandledElements.kt: (8, 20) Parameter 'foo' is never used
ERROR: compiler/testData/cli/js/diagnosticForUnhandledElements.kt: (9, 17) Cannot translate (not supported yet): '@fancy 1'
COMPILATION_ERROR
@@ -1,7 +1,7 @@
package android.app
public open class Activity {
public open fun findViewById([suppress("UNUSED_PARAMETER")] id: Int): android.view.View = null!!
public open fun findViewById(@suppress("UNUSED_PARAMETER") id: Int): android.view.View = null!!
}
public open class Fragment {
@@ -1,5 +1,5 @@
package android.view
public open class View {
public open fun findViewById([suppress("UNUSED_PARAMETER")] id: Int): android.view.View = null!!
public open fun findViewById(@suppress("UNUSED_PARAMETER") id: Int): android.view.View = null!!
}
@@ -1,5 +1,5 @@
package android.widget
public open class TextView : android.view.View() {
public fun setText([suppress("UNUSED_PARAMETER")] text: String) {}
public fun setText(@suppress("UNUSED_PARAMETER") text: String) {}
}