TestUserdefExpr
This commit is contained in:
@@ -30,15 +30,21 @@ func TestMakeInterface(t *testing.T) {
|
|||||||
}
|
}
|
||||||
*/
|
*/
|
||||||
|
|
||||||
func TestDelayExpr(t *testing.T) {
|
func TestUserdefExpr(t *testing.T) {
|
||||||
a := delayExprTy(nil)
|
a := delayExprTy(nil)
|
||||||
|
b := &phisExprTy{}
|
||||||
_ = a.String()
|
_ = a.String()
|
||||||
defer func() {
|
_ = b.String()
|
||||||
if r := recover(); r == nil {
|
test := func(a types.Type) {
|
||||||
t.Log("TestDelayExpr: no error?")
|
defer func() {
|
||||||
}
|
if r := recover(); r == nil {
|
||||||
}()
|
t.Log("TestUserdefExpr: no error?")
|
||||||
a.Underlying()
|
}
|
||||||
|
}()
|
||||||
|
a.Underlying()
|
||||||
|
}
|
||||||
|
test(a)
|
||||||
|
test(b)
|
||||||
}
|
}
|
||||||
|
|
||||||
func TestAny(t *testing.T) {
|
func TestAny(t *testing.T) {
|
||||||
|
|||||||
Reference in New Issue
Block a user