Don't check an argument type during passing it to vararg in the named form to avoid false positives if the argument type is type variable yet
^KT-41144 Fixed
This commit is contained in:
Vendored
+10
@@ -0,0 +1,10 @@
|
||||
// FIR_IDENTICAL
|
||||
// !DIAGNOSTICS: -UNUSED_PARAMETER
|
||||
|
||||
fun <K> id(x: K) = x
|
||||
|
||||
fun main() {
|
||||
foo(x = id(arrayOf(1)))
|
||||
}
|
||||
|
||||
fun <T> foo(vararg x: T) {}
|
||||
Reference in New Issue
Block a user