FIR: account for vararg when creating KFunction type for callable reference
This commit is contained in:
committed by
Mikhail Glukhikh
parent
e5e50eabe9
commit
4e14f9500f
Vendored
-1
@@ -1,5 +1,4 @@
|
||||
// !LANGUAGE: +NewInference +FunctionReferenceWithDefaultValueAsOtherType
|
||||
// IGNORE_BACKEND_FIR: JVM_IR
|
||||
|
||||
fun foo(s: String = "kotlin", vararg t: String): Boolean {
|
||||
if (s != "kotlin") throw AssertionError(s)
|
||||
|
||||
Reference in New Issue
Block a user