Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fatal error: exception Not_found #61

Open
yallop opened this issue Aug 11, 2023 · 0 comments
Open

Fatal error: exception Not_found #61

yallop opened this issue Aug 11, 2023 · 0 comments

Comments

@yallop
Copy link
Contributor

yallop commented Aug 11, 2023

discovered by @pxeger:

$ OCAMLRUNPARAM=b ocaml 
        OCaml version 4.02.1+dev0-2014-08-29

# module type ModuleType = sig module type T end;;
module type ModuleType = sig module type T end
# let test {M1: ModuleType} (f: {M1: M1.T} -> 'a -> 'b) = ();;
val test : {M1 : ModuleType} -> ({M1 : M1.T} -> 'a -> 'b) -> unit = <fun>
# module type X = sig end;;
module type X = sig  end
# let () = test (fun {X: X} x -> X);;
Fatal error: exception Not_found
Raised at file "typing/env.ml", line 382, characters 18-27
Called from file "typing/env.ml", line 659, characters 17-35
Called from file "typing/env.ml", line 1771, characters 20-45
Called from file "typing/typetexp.ml", line 916, characters 13-49
Called from file "parsing/location.ml", line 344, characters 2-13
Called from file "typing/typetexp.ml", line 1027, characters 13-67
Called from file "parsing/location.ml", line 314, characters 14-19
Called from file "parsing/location.ml", line 367, characters 8-24
Called from file "toplevel/toploop.ml", line 491, characters 11-42
Called from file "toplevel/topstart.ml", line 13, characters 8-22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant