Files
Toy/tests/scripts/test_function_first_class_citizens.toy
T

10 lines
175 B
Plaintext

//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";