diff options
Diffstat (limited to 'test/const-function.mnml')
-rw-r--r-- | test/const-function.mnml | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/test/const-function.mnml b/test/const-function.mnml index 1f77a73..9630dd8 100644 --- a/test/const-function.mnml +++ b/test/const-function.mnml @@ -1,6 +1,8 @@ -const main: function = (input: string or integer): void { +const main: function = (input: string or integer, default: integer = 1): void { const hello: string = input + " world!" const bye: string = "bye!" return hello + " " + bye } + +main(input = "hey", 2) |