"Wrap element with arrayOf() call": don't suggest for annotation parameters
#KT-28969 Fixed
This commit is contained in:
committed by
Mikhail Glukhikh
parent
41b6bcf8c3
commit
53b0aa5813
+14
@@ -0,0 +1,14 @@
|
||||
// "Wrap element with 'arrayOf' call" "false"
|
||||
// ERROR: Type mismatch: inferred type is String but Array<String> was expected
|
||||
// ACTION: Add arrayOf wrapper
|
||||
// ACTION: Change parameter 'value' type of primary constructor of class 'Foo' to 'String'
|
||||
// ACTION: Create test
|
||||
// ACTION: Make internal
|
||||
// ACTION: Make private
|
||||
// ACTION: To raw string literal
|
||||
// ACTION: Wrap with []
|
||||
|
||||
annotation class Foo(val value: Array<String>)
|
||||
|
||||
@Foo(value = "abc"<caret>)
|
||||
class Bar
|
||||
Reference in New Issue
Block a user