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: 6907 Reporter:@ivg Assigned to:@garrigue Status: closed (set by @xavierleroy on 2017-02-16T14:14:48Z) Resolution: fixed Priority: normal Severity: minor Version: 4.02.1 Target version: 4.03.0+dev / +beta1 Fixed in version: 4.03.0+dev / +beta1 Category: typing Monitored by:@ivg
Bug description
On the following code, compiler fails with "Fatal error: exception Stack overflow"
class type ['e] t = object('s)
method update : 'e -> 's
end
module type S = sig
class base : 'e -> ['e] t
(* ^^^^^^
missed type parameters *)
end
Steps to reproduce
$ ocamlc min.ml
Additional information
The bug is reproducible on at least 4.02.2 and 4.02.1. I didn't try on older versions.
The category is chosen based on an educated guess. I have no real witness, that it is from type checker, other then the error occurs on both ocamlc, ocaml, ocamlopt and even merlin.
Also, when minimizing an example, I've figured out, that the trigger is the return type of update method. If I change update return type to unit for example, the error will not show itself.
Original bug ID: 6907
Reporter: @ivg
Assigned to: @garrigue
Status: closed (set by @xavierleroy on 2017-02-16T14:14:48Z)
Resolution: fixed
Priority: normal
Severity: minor
Version: 4.02.1
Target version: 4.03.0+dev / +beta1
Fixed in version: 4.03.0+dev / +beta1
Category: typing
Monitored by: @ivg
Bug description
On the following code, compiler fails with "Fatal error: exception Stack overflow"
class type ['e] t = object('s)
method update : 'e -> 's
end
module type S = sig
class base : 'e -> ['e] t
(* ^^^^^^
missed type parameters *)
end
Steps to reproduce
$ ocamlc min.ml
Additional information
The bug is reproducible on at least 4.02.2 and 4.02.1. I didn't try on older versions.
The category is chosen based on an educated guess. I have no real witness, that it is from type checker, other then the error occurs on both ocamlc, ocaml, ocamlopt and even merlin.
Also, when minimizing an example, I've figured out, that the trigger is the return type of
update
method. If I changeupdate
return type tounit
for example, the error will not show itself.File attachments
The text was updated successfully, but these errors were encountered: