"Add type" quick fix incorrectly processes vararg modifier with primitive type array initializer #KT-21544 Fixed

This commit is contained in:
Toshiaki Kameyama
2017-12-01 18:37:38 +09:00
committed by Dmitry Jemerov
parent 846e50dcaa
commit 4563cf250d
6 changed files with 29 additions and 2 deletions
@@ -0,0 +1,3 @@
// "Add type 'Double' to parameter 'value'" "true"
class CollectionDefault(vararg val value = doubleArrayOf(1.0, 2.2)<caret>)
@@ -0,0 +1,3 @@
// "Add type 'Double' to parameter 'value'" "true"
class CollectionDefault(vararg val value: Double = doubleArrayOf(1.0, 2.2))
@@ -0,0 +1,3 @@
// "Add type 'Int' to parameter 'value'" "true"
class CollectionDefault(vararg val value = intArrayOf(1, 2)<caret>)
@@ -0,0 +1,3 @@
// "Add type 'Int' to parameter 'value'" "true"
class CollectionDefault(vararg val value: Int = intArrayOf(1, 2))