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: 6768 Reporter: darktenaibre Assigned to:@garrigue Status: closed (set by @xavierleroy on 2016-12-07T10:47:10Z) Resolution: fixed Priority: normal Severity: minor Version: 4.02.1 Fixed in version: 4.02.2+dev / +rc1 Category: typing Monitored by:@hcarty
Bug description
The following make the typechecker loop and eventually overflow, while 4.01.0 fails saying the type annotation d is cyclic (which is correct).
Steps to reproduce
type _ prod =
| Prod : ('a * 'y) prod
let f : type t. t prod -> _ =
function Prod -> let module M =
struct
type d = d * d
end in ()
Additional information
Removing the pattern matching, simplifying either the GADT constraint or the type declaration (e.g. "type d = d") or removing the typing constraint/abstraction on f yields the correct error message.
The text was updated successfully, but these errors were encountered:
Original bug ID: 6768
Reporter: darktenaibre
Assigned to: @garrigue
Status: closed (set by @xavierleroy on 2016-12-07T10:47:10Z)
Resolution: fixed
Priority: normal
Severity: minor
Version: 4.02.1
Fixed in version: 4.02.2+dev / +rc1
Category: typing
Monitored by: @hcarty
Bug description
The following make the typechecker loop and eventually overflow, while 4.01.0 fails saying the type annotation d is cyclic (which is correct).
Steps to reproduce
type _ prod =
| Prod : ('a * 'y) prod
let f : type t. t prod -> _ =
function Prod -> let module M =
struct
type d = d * d
end in ()
Additional information
Removing the pattern matching, simplifying either the GADT constraint or the type declaration (e.g. "type d = d") or removing the typing constraint/abstraction on f yields the correct error message.
The text was updated successfully, but these errors were encountered: