summaryrefslogtreecommitdiff
path: root/src/runtime/iface.c
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2009-01-21 14:51:57 -0800
committerRuss Cox <rsc@golang.org>2009-01-21 14:51:57 -0800
commitae1af64b5ab2f4f30e5c11cd39c12a7b577fc0de (patch)
treee6e5387785e7225a21f67ca7ae15473f3d926bec /src/runtime/iface.c
parentae0b945bd5fa28ac4f6009465222104086a2166c (diff)
downloadgolang-ae1af64b5ab2f4f30e5c11cd39c12a7b577fc0de.tar.gz
disallow P.t for lowercase t and not our package P.
implement hiding lowercase methods m in signatures by adding in a hash of the package name to the type hash code. remove remaining checks for internally-generated _ names: they are all gone. R=ken OCL=23236 CL=23238
Diffstat (limited to 'src/runtime/iface.c')
-rw-r--r--src/runtime/iface.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/runtime/iface.c b/src/runtime/iface.c
index 832f15726..70e2b4f04 100644
--- a/src/runtime/iface.c
+++ b/src/runtime/iface.c
@@ -168,6 +168,13 @@ throw:
prints(": missing method ");
prints((int8*)iname);
prints("\n");
+ if(iface_debug) {
+ prints("interface");
+ printsigi(si);
+ prints("\ntype");
+ printsigt(st);
+ prints("\n");
+ }
throw("interface conversion");
}
m->bad = 1;