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/bug1583.1.sml
ViewVC logotype

View of /tests/trunk/bugs/tests.obsolete/bug1583.1.sml

Parent Directory Parent Directory | Revision Log Revision Log


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

(* This code causes the bug *)
signature FOO = sig type bar = string datatype foo = A | B | C of bar end
structure Foo = struct type bar = string datatype foo = A | B | C of bar end
signature BAR = sig structure Foo : FOO datatype foo = datatype Foo.foo end
functor Bar() : BAR = struct
   structure Foo = Foo
   datatype foo = datatype Foo.foo
end;

(* But this doesn't *)
signature FOO = sig type bar = string datatype foo = A | B | C of string end
structure Foo = struct type bar = string datatype foo = A | B | C of string end
signature BAR = sig structure Foo : FOO datatype foo = datatype Foo.foo end
functor Bar() : BAR = struct
   structure Foo = Foo
   datatype foo = datatype Foo.foo
end;        
                             

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