Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0007841OCamltoplevelpublic2018-08-22 16:352018-09-19 18:08
Reporterdra 
Assigned Todim 
PriorityhighSeverityminorReproducibilityalways
StatusassignedResolutionopen 
PlatformanyOSn/aOS Versionn/a
Product Version4.07.0 
Target Version4.08.0+devFixed in Version 
Summary0007841: Shadowing standard library modules doesn't work in the toplevel
DescriptionShadowing standard library modules doesn't work in the toplevel, in particular the new Result module merged in 4.08 shadows the opam result package's Result module.
Steps To Reproduce - Build and compile ocaml-trunk and the https://github.com/janestreet/result [^]
 - Launch the toplevel
 - #directory "/path/to/result.cma";;
 - #load "result.cma";;
 - #show_module Result;;

The result should be a module with a single type, but the standard library's Result module will be shown instead.
Additional InformationSee comments at the end of GPR#1956 (https://github.com/ocaml/ocaml/pull/1956#issuecomment-414989280 [^])
TagsNo tags attached.
Attached Files

- Relationships

-  Notes
(0019311)
xleroy (administrator)
2018-08-22 17:48

EDIT: I posted a wrong comment before, please ignore.
(0019372)
dim (developer)
2018-09-19 18:08

This is fixed by this PR: https://github.com/ocaml/ocaml/pull/2041 [^]

- Issue History
Date Modified Username Field Change
2018-08-22 16:35 dra New Issue
2018-08-22 16:35 dra Status new => assigned
2018-08-22 16:35 dra Assigned To => dim
2018-08-22 17:32 xleroy Note Added: 0019310
2018-08-22 17:47 xleroy Note Deleted: 0019310
2018-08-22 17:48 xleroy Note Added: 0019311
2018-09-19 18:08 dim Note Added: 0019372


Copyright © 2000 - 2011 MantisBT Group
Powered by Mantis Bugtracker