Skip to content

Commit

Permalink
printer: update shadow test
Browse files Browse the repository at this point in the history
  • Loading branch information
visualfc committed Apr 11, 2024
1 parent b929e5d commit 115c876
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions printer/gop_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,12 @@ func TestFuncs(t *testing.T) {
Name: &ast.Ident{Name: "bar"},
Body: &ast.BlockStmt{},
},
&ast.FuncDecl{
Type: &ast.FuncType{Params: &ast.FieldList{}},
Name: &ast.Ident{Name: "Classname"},
Body: &ast.BlockStmt{},
Shadow: true,
},
},
NoPkgDecl: true,
}); err != nil {
Expand Down

0 comments on commit 115c876

Please sign in to comment.