forked from alex-eg/sex
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.
This commit is contained in:
7
tests/modules/cycle-app.sex
Normal file
7
tests/modules/cycle-app.sex
Normal file
@@ -0,0 +1,7 @@
|
||||
(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))
|
||||
Reference in New Issue
Block a user