Files
sex/tests/modules/cycle-app.sex
alex-eg 9af5360131 count a unit among its own imports
Two modules importing each other with pub hand the unit its own
interface back, and its types were defined twice.
2026-10-19 16:06:13 +03:00

8 lines
142 B
Scheme

(include stdio.h)
(import cycle/a)
(pub fn main () int
(var b rb (make-rb 1 2))
(printf "cycle %d %d\n" (. b a x) (. b y))
(return 0))