@@ -1713,23 +1713,23 @@ func TestAliasTypeMethod(t *testing.T) {
17131713}
17141714
17151715func TestAliasCheckInterface (t * testing.T ) {
1716- pkg := NewPackage ("" , "foo" , & Config { EnableTypesalias : true } )
1716+ pkg := NewPackage ("" , "foo" , nil )
17171717 alias := pkg .AliasType ("Any" , types .NewInterfaceType (nil , nil ))
17181718 if typ , ok := pkg .cb .checkInterface (alias ); typ == nil || ! ok {
17191719 t .Fatal ("TestAliasCheckInterface failed:" , typ , ok )
17201720 }
17211721}
17221722
17231723func TestAliasUnsigned (t * testing.T ) {
1724- pkg := NewPackage ("" , "foo" , & Config { EnableTypesalias : true } )
1724+ pkg := NewPackage ("" , "foo" , nil )
17251725 typ := pkg .AliasType ("Int" , types .Typ [types .Uint8 ])
17261726 if ! isUnsigned (typ ) {
17271727 t .Fatal ("TestAliasUnsigned failed:" , typ )
17281728 }
17291729}
17301730
17311731func TestAliasContract (t * testing.T ) {
1732- pkg := NewPackage ("" , "foo" , & Config { EnableTypesalias : true } )
1732+ pkg := NewPackage ("" , "foo" , nil )
17331733 at := types .NewPackage ("foo" , "foo" )
17341734 foo := pkg .Import ("github.com/goplus/gogen/internal/foo" )
17351735 tfoo := foo .Ref ("Foo" ).Type ()
@@ -1760,7 +1760,7 @@ func TestAliasContract(t *testing.T) {
17601760}
17611761
17621762func TestAliasIsNumeric (t * testing.T ) {
1763- pkg := NewPackage ("" , "foo" , & Config { EnableTypesalias : true } )
1763+ pkg := NewPackage ("" , "foo" , nil )
17641764 typ := types .NewNamed (types .NewTypeName (token .NoPos , pkg .Types , "MyInt" , nil ), types .Typ [types .Int ], nil )
17651765 if ! isNumeric (& pkg .cb , typ ) {
17661766 t .Fatal ("TestAliasIsNumeric: MyInt not isNumeric?" )
@@ -1772,7 +1772,7 @@ func TestAliasIsNumeric(t *testing.T) {
17721772}
17731773
17741774func TestAliasGetStruct (t * testing.T ) {
1775- pkg := NewPackage ("" , "foo" , & Config { EnableTypesalias : true } )
1775+ pkg := NewPackage ("" , "foo" , nil )
17761776 st := types .NewStruct (
17771777 []* types.Var {types .NewField (token .NoPos , pkg .Types , "F" , types .Typ [types .Int ], false )},
17781778 nil ,
@@ -1784,7 +1784,7 @@ func TestAliasGetStruct(t *testing.T) {
17841784}
17851785
17861786func TestAliasRecv (t * testing.T ) {
1787- pkg := NewPackage ("" , "foo" , & Config { EnableTypesalias : true } )
1787+ pkg := NewPackage ("" , "foo" , nil )
17881788 var instr recvInstr
17891789 elem := & Element {
17901790 Type : pkg .AliasType ("MyChan" , types .NewChan (types .SendRecv , types .Typ [types .Int ])),
@@ -1797,7 +1797,7 @@ func TestAliasRecv(t *testing.T) {
17971797}
17981798
17991799func TestAliasOffsetof (t * testing.T ) {
1800- pkg := NewPackage ("" , "foo" , & Config { EnableTypesalias : true } )
1800+ pkg := NewPackage ("" , "foo" , nil )
18011801 var instr unsafeOffsetofInstr
18021802 typ := types .NewNamed (
18031803 types .NewTypeName (token .NoPos , pkg .Types , "Point" , nil ),
@@ -1831,7 +1831,7 @@ func TestAliasOffsetof(t *testing.T) {
18311831}
18321832
18331833func TestAliasBasic (t * testing.T ) {
1834- pkg := NewPackage ("" , "foo" , & Config { EnableTypesalias : true } )
1834+ pkg := NewPackage ("" , "foo" , nil )
18351835 aliasType := pkg .AliasType ("MyInt" , types .Typ [types .Int ])
18361836 elem := & Element {
18371837 Type : aliasType ,
0 commit comments