Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(128)

Unified Diff: src/cmd/gc/subr.c

Issue 180092: gc: method expressions on concrete types (Closed)
Patch Set: code review 180092: gc: method expressions on concrete types Created 15 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/cmd/gc/reflect.c ('k') | src/cmd/gc/typecheck.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/cmd/gc/subr.c
===================================================================
--- a/src/cmd/gc/subr.c
+++ b/src/cmd/gc/subr.c
@@ -2531,7 +2531,7 @@
Sym *s;
int c, d;
- typecheck(&n->left, Erv);
+ typecheck(&n->left, Etype|Erv);
t = n->left->type;
if(t == T)
goto ret;
@@ -2913,7 +2913,7 @@
// if pointer receiver in method,
// the method does not exist for value types.
rcvr = getthisx(tm->type)->type->type;
- if(isptr[rcvr->etype] && !isptr[t0->etype] && !followptr && !isifacemethod(tm)) {
+ if(isptr[rcvr->etype] && !isptr[t0->etype] && !followptr && !isifacemethod(tm->type)) {
if(debug['r'])
yyerror("interface pointer mismatch");
*m = im;
« no previous file with comments | « src/cmd/gc/reflect.c ('k') | src/cmd/gc/typecheck.c » ('j') | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b