mirror of
https://github.com/ruuda/rcl.git
synced 2025-12-23 04:47:19 +00:00
This feels slightly more natural to me, and it reduces the number of things we need to track in the CST/AST.
26 lines
528 B
Text
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.
|