Skip to content

Commit

Permalink
fixed issue in validator
Browse files Browse the repository at this point in the history
  • Loading branch information
jurgenvinju committed Mar 21, 2024
1 parent 0232994 commit e51bbe7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/org/rascalmpl/library/util/Validator.rsc
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ private data RuntimeException = none();
&T validate(type[&T] expected, node v, list[value] path = [], bool relaxed=false) {
Symbol lookup(str name, [*_,label(key, sym),*_]) = sym;
default Symbol lookup(str _, list[Symbol] _) = \value();
Symbol unlabe(label(_, Symbol sym)) = sym;
Symbol unlabel(label(_, Symbol sym)) = sym;
default Symbol unlabel(Symbol sym) = sym;

if (expected.symbol == \node()) {
Expand Down

0 comments on commit e51bbe7

Please sign in to comment.