diff --git a/compiler/testData/checkerWithErrorTypes/quick/regressions/kt128.jet b/compiler/testData/checkerWithErrorTypes/quick/regressions/kt128.jet new file mode 100644 index 00000000000..efc005cf183 --- /dev/null +++ b/compiler/testData/checkerWithErrorTypes/quick/regressions/kt128.jet @@ -0,0 +1,12 @@ +// KT-128 Support passing only the last closure if all the other parameters have default values + +fun div(c : String = "", f : fun()) {} +fun f() { + div { // Nothing passed, but could have been... + // ... + } + + div (c = "foo") { // More things could have been passed + // ... + } +} \ No newline at end of file