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

Assert_failure("typing/", 264, 4) #6293

vicuna opened this issue Jan 10, 2014 · 2 comments

Assert_failure("typing/", 264, 4) #6293

vicuna opened this issue Jan 10, 2014 · 2 comments


Copy link

@vicuna vicuna commented Jan 10, 2014

Original bug ID: 6293
Reporter: elnatan
Assigned to: @gasche
Status: closed (set by @xavierleroy on 2015-12-11T18:27:38Z)
Resolution: fixed
Priority: normal
Severity: minor
Version: 4.01.0
Fixed in version: 4.02.0+dev
Category: typing

Bug description

Trying to compile the code below causes an assertion failure in, in both 4.00 and 4.01.

module type S = sig type t = { a : int; b : int; } end
let f (module M : S with type t = int) = { M.a = 0 };;

Copy link

@vicuna vicuna commented Jan 23, 2014

Comment author: @xclerc

Fails in 4.00 and 4.01 branches, but trunk (as of revision 14420) raises a proper error:
File "../", line 2, characters 6-38:
Error: In this `with' constraint, the new definition of t
does not match its original definition in the constrained signature:
Type declarations do not match:
type t
is not included in
type t = { a : int; b : int; }
File "../", line 1, characters 25-50: Expected declaration
File "../", line 2, characters 6-38: Actual declaration
Their kinds differ.

Copy link

@vicuna vicuna commented May 22, 2014

Comment author: @gasche

This was fixed by Jacques Garrigue in trunk@14400 (January).

@vicuna vicuna closed this Dec 11, 2015
@vicuna vicuna added the typing label Mar 14, 2019
@vicuna vicuna added the bug label Mar 20, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants