Skip to content

Assert_failure("typing/typecore.ml", 264, 4) #6293

@vicuna

Description

@vicuna

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 typecore.ml, 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 };;

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions