mirror of
https://github.com/krgamestudios/Toy.git
synced 2026-04-15 14:54:07 +10:00
Function declaration seems to work
This commit is contained in:
9
scripts/function.toy
Normal file
9
scripts/function.toy
Normal file
@@ -0,0 +1,9 @@
|
||||
|
||||
|
||||
fn name(argument: type, arg2: type, ...rest): int {
|
||||
print "hello world";
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
print name;
|
||||
Reference in New Issue
Block a user