Take into account vararg modifier in "Add type" quick fix
So #KT-20894 Fixed
This commit is contained in:
committed by
Mikhail Glukhikh
parent
4d93c08bd0
commit
2dd66225f3
Vendored
+4
@@ -0,0 +1,4 @@
|
||||
// "Add type 'Double' to parameter 'value'" "true"
|
||||
// LANGUAGE_VERSION: 1.2
|
||||
|
||||
annotation class CollectionDefault(vararg val value = [1.0, 2.2]<caret>)
|
||||
+4
@@ -0,0 +1,4 @@
|
||||
// "Add type 'Double' to parameter 'value'" "true"
|
||||
// LANGUAGE_VERSION: 1.2
|
||||
|
||||
annotation class CollectionDefault(vararg val value: Double = [1.0, 2.2])
|
||||
Vendored
+4
@@ -0,0 +1,4 @@
|
||||
// "Add type 'Int' to parameter 'value'" "true"
|
||||
// LANGUAGE_VERSION: 1.2
|
||||
|
||||
annotation class CollectionDefault(vararg val value = [1, 2]<caret>)
|
||||
+4
@@ -0,0 +1,4 @@
|
||||
// "Add type 'Int' to parameter 'value'" "true"
|
||||
// LANGUAGE_VERSION: 1.2
|
||||
|
||||
annotation class CollectionDefault(vararg val value: Int = [1, 2])
|
||||
Vendored
+4
@@ -0,0 +1,4 @@
|
||||
// "Add type 'String' to parameter 'value'" "true"
|
||||
// LANGUAGE_VERSION: 1.2
|
||||
|
||||
annotation class CollectionDefault(vararg val value = ["alpha", "beta"]<caret>)
|
||||
+4
@@ -0,0 +1,4 @@
|
||||
// "Add type 'String' to parameter 'value'" "true"
|
||||
// LANGUAGE_VERSION: 1.2
|
||||
|
||||
annotation class CollectionDefault(vararg val value: String = ["alpha", "beta"])
|
||||
Reference in New Issue
Block a user