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

Error when compiling with ocaml 4.11.1 #10087

Closed
mockey opened this issue Jan 22, 2021 · 4 comments
Closed

Error when compiling with ocaml 4.11.1 #10087

mockey opened this issue Jan 22, 2021 · 4 comments

Comments

@mockey
Copy link
Contributor

mockey commented Jan 22, 2021

Trying to compile the current version with ocaml 4.11.1 leads to an error:

File "src/context/common.ml", line 1105, characters 10-122:
1105 | 			| _ -> ExtList.List.find_map (fun t -> match t with TClassDecl c when c.cl_path = path -> Some c | _ -> None) m.m_types
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Error: This expression has type Type.tclass option
       but an expression was expected of type Type.tclass = TType.tclass
make: *** [Makefile:77: haxe] Error 1
@kLabz
Copy link
Contributor

kLabz commented Jan 22, 2021

See #10086 :)

@RealyUniqueName
Copy link
Member

Fixed by #10086

@R32
Copy link
Contributor

R32 commented Feb 6, 2021

After that PR, I found that extlib must be updated to 1.7.8 to avoid this error

opam upgrade extlib

@kLabz
Copy link
Contributor

kLabz commented Feb 6, 2021

Yep, it's mentioned in the PR

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

4 participants