blob: 0b6070a587813e4737e511f71a143ba855b9e7e5 (
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
Circular imports are not possible and will lead to a compilation error.
-- Testcase --
import a_val from "./files/a.uc";
-- End --
-- File a.uc --
import b_val from "./b.uc";
export default "a";
-- End --
-- File b.uc --
import a_val from "./a.uc";
export default "b";
-- End --
-- Args --
-R
-- End --
-- Expect stderr --
Syntax error: Unable to compile module './files/a.uc':
| Syntax error: Unable to compile module './files/b.uc':
|
| | Syntax error: Circular dependency
| | In ./files/b.uc, line 1, byte 19:
| |
| | `import a_val from "./a.uc";`
| | Near here --------^
|
| In ./files/a.uc, line 1, byte 27:
|
| `import b_val from "./b.uc";`
| Near here ----------------^
In [stdin], line 1, byte 33:
`import a_val from "./files/a.uc";`
Near here ----------------------^
-- End --
|