From 4e1a4d9fde6a700ec24be54b8ff0fc060e110517 Mon Sep 17 00:00:00 2001 From: Andrew Gerrand Date: Tue, 20 Aug 2013 15:26:04 +1000 Subject: [PATCH] go.tools/go/types: fix bad function comparison Issue found by vet -nilfunc. R=golang-dev, dsymonds CC=golang-dev https://golang.org/cl/12816044 --- go/types/call.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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