blob: 411b1ab77f982516cd8289cb88259a5f3e711cd3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
pub fun main() ! Io -> Unit {
// Args not ordered by name, in different order from params.
printMessage!(.b = ", ", .a = "hello", .c = "world\n");
}
// Params not ordered by name, in different order from args.
fun printMessage(.a: String, .c: String, .b: String) ! Io -> Unit {
print!(a);
print!(b);
print!(c);
}
|