FilterConditionsのメンバーのタイプを指定して、のQueryによって制限するにはどうすればよいBoolExprですExprか?
type Expr =
| BoolExpr of Expr
| ConstValue of Object
| FieldAccess of string
type Query = {
SelectList: Expr list
FilterConditions: Expr.BoolExpr list // Expr.BoolExpr - this is don't valid? why?
}
BoolExprのみでFilterConditions のタイプを制限したいExpr。出来ますか?それとも、AST の構造を再設計する必要がありますか? ...