From cff5ea58de32f1f9c60b73d2030952437ee40efe Mon Sep 17 00:00:00 2001 From: Andrey Breslav Date: Thu, 27 Oct 2011 21:27:57 +0400 Subject: [PATCH] KT-128 Support passing only the last closure if all the other parameters have default values --- .../quick/regressions/kt128.jet | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 compiler/testData/checkerWithErrorTypes/quick/regressions/kt128.jet 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