Updated and revised some tests
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
//check functions are first class citizens
|
||||
fn hello() {
|
||||
print "Hello world";
|
||||
}
|
||||
|
||||
fn ident(x) {
|
||||
return x;
|
||||
}
|
||||
|
||||
assert ident(hello) == hello, "First class function check failed";
|
||||
Reference in New Issue
Block a user