summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--appl/cmd/limbo/typecheck.b4
-rw-r--r--dis/limbo.disbin343658 -> 343678 bytes
-rw-r--r--limbo/typecheck.c4
3 files changed, 6 insertions, 2 deletions
diff --git a/appl/cmd/limbo/typecheck.b b/appl/cmd/limbo/typecheck.b
index 5629500b..88060840 100644
--- a/appl/cmd/limbo/typecheck.b
+++ b/appl/cmd/limbo/typecheck.b
@@ -759,9 +759,11 @@ concheck(n: ref Node, isglobal: int)
exname(d: ref Decl): string
{
s := "";
- m := impmods.sym;
+ m: ref Sym;
if(d.dot != nil)
m = d.dot.sym;
+ else if(impmods != nil)
+ m = impmods.sym;
if(m != nil)
s += m.name+".";
if(fndec != nil)
diff --git a/dis/limbo.dis b/dis/limbo.dis
index 76c2dfb4..b4e3acac 100644
--- a/dis/limbo.dis
+++ b/dis/limbo.dis
Binary files differ
diff --git a/limbo/typecheck.c b/limbo/typecheck.c
index 52e0295d..ce3da87b 100644
--- a/limbo/typecheck.c
+++ b/limbo/typecheck.c
@@ -873,9 +873,11 @@ exname(Decl *d)
n = 0;
sprint(buf, "%d", scope-ScopeGlobal);
- m = impmods->sym;
+ m = nil;
if(d->dot)
m = d->dot->sym;
+ else if(impmods)
+ m = impmods->sym;
if(m)
n += strlen(m->name)+1;
if(fndec)