Skip to content

Commit

Permalink
Minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ShinWonho committed Sep 26, 2024
1 parent 30394ff commit 1ff9bae
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions spectec/src/al/valid.ml
Original file line number Diff line number Diff line change
Expand Up @@ -554,7 +554,6 @@ and valid_expr env (expr: expr) : unit =
check_tuple source exprs expr.note;
| CaseE (op, exprs) ->
let is_evalctx_id id =
let source = "" $ no_region in
let evalctx_ids = List.filter_map (fun (mixop, _, _) ->
let atom = mixop |> List.hd |> List.hd in
match atom.it with
Expand All @@ -567,11 +566,11 @@ and valid_expr env (expr: expr) : unit =
| [[{ it=Atom id; _ }]] when is_evalctx_id id ->
check_case source exprs (TupT [] $ no_region)
| _ ->
List.iter (valid_expr env) exprs;
let tcs = get_typcases source expr.note in
let _binds, typ, _prems = find_case source tcs op in
check_case source exprs typ;
)
List.iter (valid_expr env) exprs;
let tcs = get_typcases source expr.note in
let _binds, typ, _prems = find_case source tcs op in
check_case source exprs typ;
)
| CallE (id, args) ->
List.iter (valid_arg env) args;
check_call source id args expr.note;
Expand Down

0 comments on commit 1ff9bae

Please sign in to comment.