Changes to test/basic. Confirm that named imports work.
This commit is contained in:
parent
8f78a6c6d2
commit
56ab75dcc2
|
@ -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()
|
||||
|
||||
|
|
|
@ -2,6 +2,6 @@ package main
|
|||
|
||||
type mine1 int
|
||||
type mine2 struct {
|
||||
a int
|
||||
b int
|
||||
A int
|
||||
B int
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user