Skip to content

Commit

Permalink
gc
Browse files Browse the repository at this point in the history
  • Loading branch information
DQNEO committed Aug 21, 2023
1 parent 7c4241d commit 640a815
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions internal/sema/sema.go
Original file line number Diff line number Diff line change
Expand Up @@ -627,9 +627,6 @@ func LookupMethod(rcvT types.Type, methodName string) *ir.Method {

switch typ := rcvT.(type) {
case *types.Named:
if typ.PkgName == "fmt" && typ.String() == "Type" {
panic("fmt.Type should not exist")
}
if typ.PkgName == "" && typ.String() == "error" {
namedTypeId = "error"
return &ir.Method{
Expand Down

0 comments on commit 640a815

Please sign in to comment.