"Wrap element with arrayOf() call": don't suggest for annotation parameters

#KT-28969 Fixed
This commit is contained in:
Toshiaki Kameyama
2019-01-05 13:48:15 +09:00
committed by Mikhail Glukhikh
parent 41b6bcf8c3
commit 53b0aa5813
3 changed files with 23 additions and 4 deletions
@@ -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