1
0
mirror of https://github.com/golang/go synced 2024-11-18 10:54:40 -07:00

b/1909731

package main
func f(a *c.b) {}
func main() {}

BUG=1909731
R=ken
OCL=30322
CL=30322
This commit is contained in:
Russ Cox 2009-06-15 20:15:59 -07:00
parent d4e57ff248
commit 30a28aec25
2 changed files with 7 additions and 0 deletions

View File

@ -1203,6 +1203,8 @@ oldtype(Sym *s)
{
Type *t;
if(s == S)
return T;
if(s->def == N || s->def->op != OTYPE) {
yyerror("%S is not a type", s);
return T;

View File

@ -1087,6 +1087,11 @@ othertype:
| interfacetype
| dotname
{
if($1->op == ODOT) {
yyerror("%S.%S is not a type", $1->left->sym, $1->right->sym);
$$ = T;
break;
}
if($1->op == OTYPE)
if($1->type->etype == TANY)
if(strcmp(package, "PACKAGE") != 0)