blob: ca7ff35671dc9da583d70bd8fd9ae745a2dc996f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
Imported bindings to exported module variables are live, they'll reflect
every change to the exported variable values.
-- Testcase --
import { counter, count } from "./files/test.uc";
print(counter, "\n");
count();
print(counter, "\n");
-- End --
-- File test.uc --
let counter = 1;
function count() {
counter++;
}
export { counter, count };
-- End --
-- Args --
-R
-- End --
-- Expect stdout --
1
2
-- End --
|