blob: 7d86722fec3544dd21676ce6b36e9b084249e05f [file]
// RUN_PIPELINE_TILL: FRONTEND
fun foo(first: Int, second: Double = 3.14, third: Boolean = false) {}
fun bar(first: Int, second: Double = 2.71, third: Boolean, fourth: String = "") {}
fun baz(x: Int, vararg y: String, z: Boolean = false) {}
fun test() {
foo(1)
foo(1, 2.0)
foo(1, 2.0, true)
foo(1, third = true)
<!NO_VALUE_FOR_PARAMETER!>foo<!>()
foo(0, 0.0, false, <!TOO_MANY_ARGUMENTS!>""<!>)
bar(1, third = true)
bar(1, 2.0, true)
bar(1, 2.0, true, "my")
<!NO_VALUE_FOR_PARAMETER!>bar<!>(1, <!ARGUMENT_TYPE_MISMATCH!>true<!>)
baz(1)
baz(1, "my", "yours")
baz(1, z = true)
baz(0, "", <!ARGUMENT_TYPE_MISMATCH!>false<!>)
}
/* GENERATED_FIR_TAGS: functionDeclaration, integerLiteral, stringLiteral, vararg */