Home My Page Projects Code Snippets Project Openings SML/NJ
Summary Activity Forums Tracker Lists Tasks Docs Surveys News SCM Files

SCM Repository

[smlnj] View of /tests/trunk/bugs/tests.obsolete/bug42.2.sml
ViewVC logotype

View of /tests/trunk/bugs/tests.obsolete/bug42.2.sml

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2460 - (download) (annotate)
Sat Apr 28 20:18:10 2007 UTC (12 years, 1 month ago) by gkuan
File size: 568 byte(s)
(* bug42.2.sml *)

(*
   (2) bind exception processing sig specs after missing substructure
*)

signature SIG = sig type t val x:t end;

signature SIG' = sig structure S:SIG val y:S.t end;

structure T : SIG = struct type t=int val x = 3 end;

structure T' : SIG' = struct structure S=T val y=S.x end;

signature SIG'' = sig structure T:SIG val y:T.t end;

(* This should not succeed, but it does!  The unbound structure appears
   in the global environment, so it doesn't notice that the substructure T
   is missing.
*)
structure U : SIG'' = struct val y = T.x end;

root@smlnj-gforge.cs.uchicago.edu
ViewVC Help
Powered by ViewVC 1.0.0