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

View of /tests/trunk/bugs/tests.obsolete/bug1270.1.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: 338 byte(s)
(* bug1270.1.sml *)

signature S2 =
sig
  structure A : sig type s end
  val x : A.s
end;

signature S3 =
sig
  type u
  val y : u
end;

functor F (P: sig structure X: S3 end) =
struct
  type s = P.X.u
end;

functor G (U: S3) (V: S2) : S2 =  (* ": S2" necessary *)
struct
  structure A = F (struct structure X = U end)
  val x = U.y
end;

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