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

Assumed inequality between paths involving functor arguments #6241

Closed
vicuna opened this issue Nov 18, 2013 · 1 comment

Comments

Projects
None yet
2 participants
@vicuna
Copy link

commented Nov 18, 2013

Original bug ID: 6241
Reporter: @yallop
Assigned to: @garrigue
Status: closed (set by @xavierleroy on 2015-12-11T18:25:19Z)
Resolution: fixed
Priority: normal
Severity: minor
Version: 4.01.0
Fixed in version: 4.01.1+dev
Category: typing
Child of: #5998

Bug description

$ cat packages.ml
type (_, _) t =
A : ('a, 'a) t
| B : string -> ('a, 'b) t

module M (A : sig module type T end) (B : sig module type T end) =
struct
let f : ((module A.T), (module B.T)) t -> string = function
| B s -> s
end

module A = struct module type T = sig end end

module N = M(A)(A)

let x = N.f A
$ ocaml packages.ml
Segmentation fault (core dumped)

@vicuna

This comment has been minimized.

Copy link
Author

commented Nov 19, 2013

Comment author: @garrigue

Usual culprit.
Fixed in trunk and 4.01, revisions 14305-6.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.