Commit aec4d319 authored by Russ Cox's avatar Russ Cox

disallow other package's names in method calls

R=ken
OCL=22999
CL=22999
parent 626d2506
......@@ -290,6 +290,9 @@ addmethod(Node *n, Type *t, int local)
pa = f;
if(pkgimportname != S && !exportname(sf->name))
sf = pkglookup(sf->name, pkgimportname->name);
n = nod(ODCLFIELD, newname(sf), N);
n->type = t;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment