blob: 4067da97c4c020e2306dc4e8eb26c5ba2bfcbb36 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
A named function declaration can be prepended with `export` to
automatically export the function.
-- File test-func-decl.uc --
export function func() {
print("Hello, world!\n");
};
-- End --
-- Testcase --
import { func } from "./files/test-func-decl.uc";
func();
-- End --
-- Args --
-R
-- End --
-- Expect stdout --
Hello, world!
-- End --
|