summaryrefslogtreecommitdiff
path: root/appl/cmd/limbo/typecheck.b
diff options
context:
space:
mode:
Diffstat (limited to 'appl/cmd/limbo/typecheck.b')
-rw-r--r--appl/cmd/limbo/typecheck.b4
1 files changed, 3 insertions, 1 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)