Two modules importing each other with pub hand the unit its own interface back, and its types were defined twice.
8 lines
142 B
Scheme
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))
|