TestTypes

This commit is contained in:
xushiwei
2024-05-03 19:20:30 +08:00
parent b615ada2c3
commit 424dbd9261
2 changed files with 24 additions and 0 deletions

View File

@@ -91,9 +91,11 @@ type aType struct {
type Type = *aType
/*
func (p Program) Slice(typ Type) Type {
return p.Type(types.NewSlice(typ.t))
}
*/
func (p Program) Pointer(typ Type) Type {
return p.Type(types.NewPointer(typ.t))