mirror of
https://github.com/krgamestudios/Toy.git
synced 2026-05-01 22:40:10 +10:00
Fixed some 'size_t' issues and a bug caught on a different platform
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
//check functions are first class citizens
|
||||
fn hello() {
|
||||
print "Hello world";
|
||||
}
|
||||
|
||||
fn identity(x) {
|
||||
return x;
|
||||
}
|
||||
|
||||
assert identity(hello) == hello, "First class function check failed";
|
||||
Reference in New Issue
Block a user