Refactoring: rename parameter to argument for annotation diagnostics
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
// "Move annotation to receiver type" "false"
|
||||
// ERROR: This annotation is not applicable to target 'top level function' and use site target '@receiver'
|
||||
// ERROR: This annotation is not applicable to target 'declaration' and use site target '@receiver'
|
||||
// ACTION: Make internal
|
||||
// ACTION: Make private
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
// "Move annotation to receiver type" "false"
|
||||
// ERROR: This annotation is not applicable to target 'top level property without backing field or delegate' and use site target '@receiver'
|
||||
// ERROR: This annotation is not applicable to target 'declaration' and use site target '@receiver'
|
||||
// ACTION: Make internal
|
||||
// ACTION: Make private
|
||||
// ACTION: Specify type explicitly
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
// "Remove @ from annotation argument" "true"
|
||||
// ERROR: An annotation parameter must be a compile-time constant
|
||||
// ERROR: An annotation argument must be a compile-time constant
|
||||
|
||||
annotation class Y()
|
||||
annotation class X(val value: Y, val y: Y)
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
// "Remove @ from annotation argument" "true"
|
||||
// ERROR: An annotation parameter must be a compile-time constant
|
||||
// ERROR: An annotation argument must be a compile-time constant
|
||||
|
||||
annotation class Y()
|
||||
annotation class X(val value: Y, val y: Y)
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
// "Remove @ from annotation argument" "true"
|
||||
// ERROR: An annotation parameter must be a compile-time constant
|
||||
// ERROR: An annotation argument must be a compile-time constant
|
||||
|
||||
annotation class Y()
|
||||
annotation class X(val value: Y)
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
// "Remove @ from annotation argument" "true"
|
||||
// ERROR: An annotation parameter must be a compile-time constant
|
||||
// ERROR: An annotation argument must be a compile-time constant
|
||||
|
||||
annotation class Y()
|
||||
annotation class X(val value: Y)
|
||||
|
||||
Reference in New Issue
Block a user