| Anonymous | Login | Signup for a new account | 2013-05-26 02:33 CEST | ![]() |
| Main | My View | View Issues | Change Log | Roadmap |
| View Issue Details [ Jump to Notes ] | [ Issue History ] [ Print ] | |||||||||||
| ID | Project | Category | View Status | Date Submitted | Last Update | |||||||
| 0005601 | OCaml | OCaml typing | public | 2012-04-25 07:46 | 2012-04-25 09:39 | |||||||
| Reporter | garrigue | |||||||||||
| Assigned To | frisch | |||||||||||
| Priority | high | Severity | minor | Reproducibility | always | |||||||
| Status | resolved | Resolution | fixed | |||||||||
| Platform | OS | OS Version | ||||||||||
| Product Version | 4.00.0+dev | |||||||||||
| Target Version | Fixed in Version | |||||||||||
| Summary | 0005601: Shouldn't warn about unused constructors when there is an equation | |||||||||||
| Description | The following code causes two warnings: # module M = struct type t = A end;; module M : sig type t = A end # module G : sig end = struct type d = M.t = A end;; Warning 34: unused type d. Warning 37: unused constructor A. Warning 34 is correct since d is defined but never used. However warning 37 is wrong, since A comes from M.t, and one can build values using M.t. I looked at the code, but couldn't determine how to fix that. | |||||||||||
| Tags | No tags attached. | |||||||||||
| Attached Files | ||||||||||||
Notes |
|
|
(0007391) frisch (developer) 2012-04-25 09:38 |
Thanks. Fixed in trunk (12397) and 4.00 (12398). The current strategy for detecting unused constructors is rather constraining. Ideally, one should merge "usage markers" when a constructor is re-exported so to consider all the declarations for the same constructor as a single one. This can be done later. |
Issue History |
|||
| Date Modified | Username | Field | Change |
| 2012-04-25 07:46 | garrigue | New Issue | |
| 2012-04-25 07:46 | garrigue | Status | new => assigned |
| 2012-04-25 07:46 | garrigue | Assigned To | => frisch |
| 2012-04-25 09:38 | frisch | Note Added: 0007391 | |
| 2012-04-25 09:39 | frisch | Status | assigned => resolved |
| 2012-04-25 09:39 | frisch | Resolution | open => fixed |
| Copyright © 2000 - 2011 MantisBT Group |