https://kotlinlang.org logo
#intellij
Title
# intellij
a

Andrew Gazelka

01/10/2019, 12:53 PM
welp, this is a bug (redundant spread operator). I'm guessing there is a better way to do this?
d

diesieben07

01/10/2019, 12:56 PM
Just remove the secondary constructor?
vararg
already allows passing one value and wraps into array automatically.
k

karelpeeters

01/10/2019, 1:03 PM
Still, it is technically a bug in the inspection.
d

diesieben07

01/10/2019, 1:03 PM
That is true.
a

Andrew Gazelka

01/10/2019, 1:07 PM
@diesieben07 the issue is I can't do
ACoolClass(){}
though with
vararg
d

diesieben07

01/10/2019, 1:10 PM
I see. Sounds like another bug to me, maybe.
1