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:
parent
d4e57ff248
commit
30a28aec25
@ -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;
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user