Suggest primitive array type for collection literals in "add type" fix

So #KT-18549 Fixed
This commit is contained in:
Mikhail Glukhikh
2017-10-10 12:51:27 +03:00
committed by Mikhail Glukhikh
parent e65112fcab
commit 0b5b5d8e89
8 changed files with 53 additions and 1 deletions
@@ -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>)
@@ -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])
@@ -0,0 +1,4 @@
// "Add type 'IntArray' to parameter 'value'" "true"
// LANGUAGE_VERSION: 1.2
annotation class CollectionDefault(val value = [1, 2]<caret>)
@@ -0,0 +1,4 @@
// "Add type 'IntArray' to parameter 'value'" "true"
// LANGUAGE_VERSION: 1.2
annotation class CollectionDefault(val value: IntArray = [1, 2])
@@ -0,0 +1,4 @@
// "Add type 'Array<String>' to parameter 'value'" "true"
// LANGUAGE_VERSION: 1.2
annotation class CollectionDefault(val value = ["alpha", "beta"]<caret>)
@@ -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>)