MakeInterface: remove delayExpr

This commit is contained in:
xushiwei
2024-05-09 06:48:16 +08:00
parent 48737e361a
commit 2b70bb60a9
7 changed files with 129 additions and 52 deletions

View File

@@ -73,9 +73,7 @@ func TestCvtType(t *testing.T) {
}
func TestUserdefExpr(t *testing.T) {
a := delayExprTy(nil)
b := &phisExprTy{}
_ = a.String()
_ = b.String()
test := func(a types.Type) {
defer func() {
@@ -85,7 +83,6 @@ func TestUserdefExpr(t *testing.T) {
}()
a.Underlying()
}
test(a)
test(b)
}