Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
12
Task/Call-a-function/Ecstasy/call-a-function-5.ecstasy
Normal file
12
Task/Call-a-function/Ecstasy/call-a-function-5.ecstasy
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
module CallNamedArgsFunc {
|
||||
static String foo(Int a=1, Int b=2, Int c=3) {
|
||||
return $"a:{a}, b:{b}, c:{c}";
|
||||
}
|
||||
|
||||
void run() {
|
||||
@Inject Console console;
|
||||
console.print($"{foo(c=9, b=8, a=7)=}");
|
||||
console.print($"{foo(4, c=6, b=5)=}");
|
||||
console.print($"{foo(c=99)=}");
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue