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: 5882 Reporter: norm Assigned to:@garrigue Status: closed (set by @garrigue on 2013-01-10T07:08:08Z) Resolution: won't fix Priority: normal Severity: minor Platform: Mac OS: OS X OS Version: 10.4.7 Category: documentation Duplicate of:#3835
As explained in #3835, this is actually valid for the specification, but not accepted due to a limitation of LR(1) parsing.
The workaround is to write
type s = [ | int ]
(which will of course fail in this case since int is not a polymorphic variant type).
There is no incentive to fix this bug, as the above definition is not useful anyway.
Original bug ID: 5882
Reporter: norm
Assigned to: @garrigue
Status: closed (set by @garrigue on 2013-01-10T07:08:08Z)
Resolution: won't fix
Priority: normal
Severity: minor
Platform: Mac
OS: OS X
OS Version: 10.4.7
Category: documentation
Duplicate of: #3835
Bug description
The BNF produces "type s = [int]" which is probably a mistake.
See http://cap-lore.com/Languages/ocaml/bugs/a.html
for the complete production tree.
Steps to reproduce
OCaml version 4.00.1
type s = [int];;
Error: Syntax error
The text was updated successfully, but these errors were encountered: