Skip to content

Commit

Permalink
test occur error report
Browse files Browse the repository at this point in the history
  • Loading branch information
butterunderflow committed Aug 24, 2024
1 parent 260d0d0 commit 85f089d
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/regular/typing_test.ml
Original file line number Diff line number Diff line change
Expand Up @@ -1964,4 +1964,12 @@ module L2 = (K: M)
6:27-7:27 Module Signature component S1 not exists in module struct

end
|}];
print_typed {|
let _ = fun x -> x x
|};
[%expect
{|
2:32-2:32 internal error: occur check error
type variable '_t/1 occured in {'_t/1}
|}]

0 comments on commit 85f089d

Please sign in to comment.