We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fd226b1 commit e7a7710Copy full SHA for e7a7710
parser.go
@@ -107,7 +107,7 @@ func (r *astParser) ParserDecl(decl ast.Decl) {
107
}
108
109
tt := r.EvalType(s.Type)
110
- if s.Assign == 0 {
+ if s.Assign == 0 && tt.Kind() != Interface {
111
tt = newTypeNamed(s.Name.Name, tt, r)
112
} else {
113
tt = newTypeAlias(s.Name.Name, tt)
types_alias.go
@@ -15,3 +15,7 @@ type typeAlias struct {
15
func (t *typeAlias) Name() string {
16
return t.name
17
18
+
19
+func (t *typeAlias) String() string {
20
+ return t.name
21
+}
0 commit comments