Files
kotlin-fork/compiler/testData/diagnostics/tests/regressions/kt128.jet
T
Stepan Koltsov 07ff53d456 add trailing newlines to test files
otherwise I have to rollback dozens of files after using sed that follows conventions
2012-03-12 22:54:14 +04:00

13 lines
350 B
Plaintext

// KT-128 Support passing only the last closure if all the other parameters have default values
fun div(<!UNUSED_PARAMETER!>c<!> : String = "", <!UNUSED_PARAMETER!>f<!> : () -> Unit) {}
fun f() {
div { // Nothing passed, but could have been...
// ...
}
div (c = "foo") { // More things could have been passed
// ...
}
}