diff --git a/test/basic/main.go b/test/basic/main.go index 71fdf2f..054edc4 100644 --- a/test/basic/main.go +++ b/test/basic/main.go @@ -3,7 +3,7 @@ package main import ( "fmt" - "go/token" + gtoken "go/token" "gitlab.wow.st/gmp/persist" ) @@ -19,19 +19,19 @@ func main() { var y1 mine1 = 6 y2 := mine2{} y1p := persistM1("y1",y1) - y1 = y1p.Get() + y1 = y1p.Get() // confirm types match y2p := persistM2("y2",y2) y2 = y2p.Get() - y3 := token.FileSet{} + y3 := gtoken.FileSet{} y3p := persistM3("y3",y3) y3 = y3p.Get() - y4 := make(map[*token.FileSet]*token.File) + y4 := make(map[*gtoken.FileSet]*gtoken.File) y4p := persistM4("y4",y4) y4 = y4p.Get() - y5 := make(map[*token.FileSet]*persist.Var) + y5 := make(map[*gtoken.FileSet]*persist.Var) y5p := persistM5("y5",y5) y5 = y5p.Get() - y6 := make(map[persist.Var]token.FileSet) + y6 := make(map[persist.Var]gtoken.FileSet) y6p := persistM6("y6",y6) y6 = y6p.Get() diff --git a/test/basic/types.go b/test/basic/types.go index e5c6292..7172d30 100644 --- a/test/basic/types.go +++ b/test/basic/types.go @@ -2,6 +2,6 @@ package main type mine1 int type mine2 struct { - a int - b int + A int + B int }