Skip to content

Commit eda2eb5

Browse files
fix #4245
1 parent 0acaf1c commit eda2eb5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ast/datatype_decl_plugin.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -345,7 +345,7 @@ namespace datatype {
345345
bool is_recognizer0(app const* f) const { return is_app_of(f, fid(), OP_DT_RECOGNISER);}
346346
bool is_is(app const * f) const { return is_app_of(f, fid(), OP_DT_IS);}
347347
bool is_is(expr const * e) const { return is_app(e) && is_is(to_app(e)); }
348-
bool is_recognizer(expr const * f) const { return is_app(f) && is_recognizer0(to_app(f)) || is_is(to_app(f)); }
348+
bool is_recognizer(expr const * f) const { return is_app(f) && (is_recognizer0(to_app(f)) || is_is(to_app(f))); }
349349
MATCH_UNARY(is_recognizer);
350350
bool is_accessor(expr const* e) const { return is_app(e) && is_app_of(to_app(e), fid(), OP_DT_ACCESSOR); }
351351
MATCH_UNARY(is_accessor);

0 commit comments

Comments
 (0)