Closed zeldovich closed 5 years ago
Is this supported by go?
Is this supported by go?
Yes:
% go build bug1.go bug2.go
%
The bug2.go
file from my initial bug report still fails (though for a different reason now):
% cat bug2.go
package xx
type P struct {
X int
}
type Q struct {
X int
}
type Z struct {
P
Q
}
% ~/go/bin/codecgen -o gen.go bug2.go
% go build bug2.go gen.go
# command-line-arguments
./gen.go:461:3: duplicate case "X" in switch
previous case at ./gen.go:455:8
%
In your opinion, what should "X" in the encoded stream map to? Z.P.X or Z.Q.X?
and: