Skip to content

Commit 9e42018

Browse files
dhilrossberg
andauthored
Update interpreter/valid/valid.ml
Co-authored-by: Andreas Rossberg <[email protected]>
1 parent 5344a27 commit 9e42018

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

interpreter/valid/valid.ml

+1-1
Original file line numberDiff line numberDiff line change
@@ -652,7 +652,7 @@ let rec check_instr (c : context) (e : instr) (s : infer_result_type) : infer_in
652652
in
653653
let et = tag c y in
654654
let FuncT (ts31, t) = func_type_of_tag_type c et y.at in
655-
require (match_result_type c.types [] ts31) y.at
655+
require (ts31 = []) y.at
656656
"type mismatch in switch tag";
657657
require (match_result_type c.types ts12 t) y.at
658658
"type mismatch in continuation types";

0 commit comments

Comments
 (0)