Replace annotations with brackets in testData
Just in tests that changed after deprecation
This commit is contained in:
@@ -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) {}
|
||||
}
|
||||
Reference in New Issue
Block a user