Prohibit assigning single elements into varargs in named form
#KT-20588 Fixed #KT-20589 Fixed
This commit is contained in:
+8
@@ -0,0 +1,8 @@
|
||||
// "Replace with array call" "true"
|
||||
// COMPILER_ARGUMENTS: -XXLanguage:+ProhibitAssigningSingleElementsToVarargsInNamedForm
|
||||
// DISABLE-ERRORS
|
||||
|
||||
annotation class Some(vararg val strings: String)
|
||||
|
||||
@Some(strings = <caret>"value")
|
||||
class My
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
// "Replace with array call" "true"
|
||||
// COMPILER_ARGUMENTS: -XXLanguage:+ProhibitAssigningSingleElementsToVarargsInNamedForm
|
||||
// DISABLE-ERRORS
|
||||
|
||||
annotation class Some(vararg val strings: String)
|
||||
|
||||
@Some(strings = ["value"])
|
||||
class My
|
||||
Reference in New Issue
Block a user