implemented default arguments

This commit is contained in:
cozis
2022-08-15 19:33:46 +02:00
parent 4a326bff7e
commit d9fd452b8b
11 changed files with 205 additions and 47 deletions
-9
View File
@@ -1,9 +0,0 @@
fun add(a: int | float = 1, b = 8)
return a + b;
c = add(3, 4);
assert(c == 7);
print(c);