fix: assignment in type alias
This commit is contained in:
@@ -148,6 +148,7 @@ func ImplementModelAlias(modelName string, file *ast.File) {
|
|||||||
Name: &ast.Ident{
|
Name: &ast.Ident{
|
||||||
Name: modelName,
|
Name: modelName,
|
||||||
},
|
},
|
||||||
|
Assign: 1, // quick and dirty
|
||||||
Type: &ast.Ident{
|
Type: &ast.Ident{
|
||||||
Name: aliasTypeStandard,
|
Name: aliasTypeStandard,
|
||||||
},
|
},
|
||||||
@@ -280,7 +281,7 @@ func ImplementMethod(file *ast.File, methodDecl *ast.FuncDecl, reimplement bool)
|
|||||||
if reimplement || !methodImplemented {
|
if reimplement || !methodImplemented {
|
||||||
file.Decls = append(decls, methodDecl)
|
file.Decls = append(decls, methodDecl)
|
||||||
}
|
}
|
||||||
|
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user