|
module CallOptArgsFunc {
|
|
static Int foo(Int a=0, Int b=99, Int c=-1) {
|
|
return a + b + c;
|
|
}
|
|
|
|
void run() {
|
|
@Inject Console console;
|
|
console.print($"{foo()=}");
|
|
console.print($"{foo(1)=}");
|
|
console.print($"{foo(1, 2)=}");
|
|
console.print($"{foo(1, 2, 3)=}");
|
|
}
|
|
}
|