Unexport check.TypeExprFoo variables.

This commit is contained in:
Nigel Tao committed 2017-06-10 12:16:29 +10:00
1 parent 1c62391db3
commit 321ebf8617
4 files changed
+40 -33

No files matched your search

+3 -2
View File
@@ -38,7 +38,7 @@ var (
func init() {
zeroExpr.SetConstValue(zero)
zeroExpr.SetMType(TypeExprIdeal)
zeroExpr.SetMType(typeExprIdeal)
}
func btoi(b bool) *big.Int {
@@ -815,7 +815,8 @@ func (q *checker) bcheckExprAssociativeOp(n *a.Expr, depth uint32) (*big.Int, *b
}
func (q *checker) bcheckTypeExpr(n *a.TypeExpr) (*big.Int, *big.Int, error) {
if n.Eq(TypeExprIdeal) {
if n.IsIdeal() {
// TODO: can an ideal type be refined??
return nil, nil, nil
}