rcl/golden/error/runtime_import_cycle.test
Ruud van Asseldonk 5f24e1a69e Report imports at path expr, not import keyword
This feels slightly more natural to me, and it reduces the number of
things we need to track in the CST/AST.
2023-10-20 20:23:14 +02:00

26 lines
528 B
Text

import "_import_cycle_a.rcl"
# output:
_import_cycle_c.rcl:1:8
1 │ import "_import_cycle_a.rcl"
╵ ^~~~~~~~~~~~~~~~~~~~~
Error: This import creates a cycle.
_import_cycle_b.rcl:1:8
1 │ import "_import_cycle_c.rcl"
╵ ^~~~~~~~~~~~~~~~~~~~~
Note: Imported here.
_import_cycle_a.rcl:1:8
1 │ import "_import_cycle_b.rcl"
╵ ^~~~~~~~~~~~~~~~~~~~~
Note: Imported here.
stdin:1:8
1 │ import "_import_cycle_a.rcl"
╵ ^~~~~~~~~~~~~~~~~~~~~
Note: Imported here.