suusan2go / kotlin-fill-class

Intellij plugin that provides intention action for empty constructor

Home Page:https://plugins.jetbrains.com/plugin/10942-kotlin-fill-class

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Don't fill varargs

t-kameyama opened this issue · comments

fun foo(i: Int, vararg s: String) {}
fun bar(vararg s: String) {}

fun main() {
    foo()
    bar()
}

Expected

fun main() {
    foo(i = 0)
    bar() // Should not be suggested
}

Actual

fun main() {
    foo(i = 0, s =)
    bar(s =)
}