diff --git a/src/go/types/check.go b/src/go/types/check.go index b599df1c50..71d49ad83d 100644 --- a/src/go/types/check.go +++ b/src/go/types/check.go @@ -316,7 +316,6 @@ func (check *Checker) recordTypeAndValue(x ast.Expr, mode operandMode, typ Type, if mode == invalid { return // omit } - assert(typ != nil) if mode == constant_ { assert(val != nil) assert(typ == Typ[Invalid] || isConstType(typ))