diff --git a/go/types/call.go b/go/types/call.go index 4263034c..e4744565 100644 --- a/go/types/call.go +++ b/go/types/call.go @@ -204,7 +204,7 @@ func (check *checker) selector(x *operand, e *ast.SelectorExpr) { // - imported objects are always fully initialized switch exp := exp.(type) { case *Const: - assert(exp.Val != nil) + assert(exp.Val() != nil) x.mode = constant x.typ = exp.typ x.val = exp.val