Suggest primitive array type for collection literals in "add type" fix
So #KT-18549 Fixed
This commit is contained in:
committed by
Mikhail Glukhikh
parent
e65112fcab
commit
0b5b5d8e89
Vendored
+4
@@ -0,0 +1,4 @@
|
||||
// "Add type 'DoubleArray' to parameter 'value'" "true"
|
||||
// LANGUAGE_VERSION: 1.2
|
||||
|
||||
annotation class CollectionDefault(val value = [1.0, 2.2]<caret>)
|
||||
Vendored
+4
@@ -0,0 +1,4 @@
|
||||
// "Add type 'DoubleArray' to parameter 'value'" "true"
|
||||
// LANGUAGE_VERSION: 1.2
|
||||
|
||||
annotation class CollectionDefault(val value: DoubleArray = [1.0, 2.2])
|
||||
+4
@@ -0,0 +1,4 @@
|
||||
// "Add type 'IntArray' to parameter 'value'" "true"
|
||||
// LANGUAGE_VERSION: 1.2
|
||||
|
||||
annotation class CollectionDefault(val value = [1, 2]<caret>)
|
||||
Vendored
+4
@@ -0,0 +1,4 @@
|
||||
// "Add type 'IntArray' to parameter 'value'" "true"
|
||||
// LANGUAGE_VERSION: 1.2
|
||||
|
||||
annotation class CollectionDefault(val value: IntArray = [1, 2])
|
||||
Vendored
+4
@@ -0,0 +1,4 @@
|
||||
// "Add type 'Array<String>' to parameter 'value'" "true"
|
||||
// LANGUAGE_VERSION: 1.2
|
||||
|
||||
annotation class CollectionDefault(val value = ["alpha", "beta"]<caret>)
|
||||
Vendored
+4
@@ -0,0 +1,4 @@
|
||||
// "Add type 'Array<String>' to parameter 'value'" "true"
|
||||
// LANGUAGE_VERSION: 1.2
|
||||
|
||||
annotation class CollectionDefault(val value: Array<String> = ["alpha", "beta"]<caret>)
|
||||
Reference in New Issue
Block a user