You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Original bug ID: 5858 Reporter: Julien Signoles Assigned to:@garrigue Status: closed (set by @xavierleroy on 2015-12-11T18:21:05Z) Resolution: fixed Priority: normal Severity: crash Version: 4.00.1 Fixed in version: 4.00.2+dev Category: typing Has duplicate:#6083
Bug description
$ less bug.mli
class type c = object end
module type S = sig class c: c end
$ ocamlc -c bug.mli
Fatal error: exception Assert_failure("typing/env.ml", 629, 54)
Renaming the class 'c' into 'd' solves this bug.
I guess this program is erroneous since the type of S.c does not refer to the class type c outside S but to S.c itself (even if I'm not sure that scoping rules of class identifiers is precisely documented).
Anyway crashing instead of reporting a nice error message is a bit extreme ;-).
The text was updated successfully, but these errors were encountered:
Original bug ID: 5858
Reporter: Julien Signoles
Assigned to: @garrigue
Status: closed (set by @xavierleroy on 2015-12-11T18:21:05Z)
Resolution: fixed
Priority: normal
Severity: crash
Version: 4.00.1
Fixed in version: 4.00.2+dev
Category: typing
Has duplicate: #6083
Bug description
$ less bug.mli
class type c = object end
module type S = sig class c: c end
$ ocamlc -c bug.mli
Fatal error: exception Assert_failure("typing/env.ml", 629, 54)
Renaming the class 'c' into 'd' solves this bug.
I guess this program is erroneous since the type of S.c does not refer to the class type c outside S but to S.c itself (even if I'm not sure that scoping rules of class identifiers is precisely documented).
Anyway crashing instead of reporting a nice error message is a bit extreme ;-).
The text was updated successfully, but these errors were encountered: