Unexport some unused lang/check API

This commit is contained in:
Nigel Tao committed 2017-12-29 14:02:56 +11:00
1 parent 1004d898d5
commit 117a6c829b
4 files changed
+46 -79

No files matched your search

+1 -1
View File
@@ -934,7 +934,7 @@ func (q *checker) bcheckExprOther(n *a.Expr, depth uint32) (*big.Int, *big.Int,
case t.KeyDot:
// TODO: delete this hack that only matches "in".
if n.LHS().Expr().Ident().Key() == t.KeyIn {
for _, o := range q.f.Func.In().Fields() {
for _, o := range q.astFunc.In().Fields() {
o := o.Field()
if o.Name() == n.Ident() {
return q.bcheckTypeExpr(o.XType())