Skip to content

Commit

Permalink
test TyOverloadNamed
Browse files Browse the repository at this point in the history
  • Loading branch information
xushiwei committed Jan 21, 2024
1 parent 0d6c766 commit bc946f4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions builtin_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -586,6 +586,7 @@ func TestUnderlying(t *testing.T) {
&TyOverloadMethod{},
&TyTemplateRecvMethod{},
&TyInstruction{},
&TyOverloadNamed{},
&TypeType{},
&unboundFuncParam{},
&unboundProxyParam{},
Expand All @@ -609,6 +610,9 @@ func TestUnderlying(t *testing.T) {
if fex, ok := typ.(TyFuncEx); ok {
fex.funcEx()
}
if fex, ok := typ.(TyTypeEx); ok {
fex.typeEx()
}
if typ.Underlying() == typ {
panic("noop Underlying")
}
Expand Down

0 comments on commit bc946f4

Please sign in to comment.