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/bug1201.2.sml
ViewVC logotype

View of /tests/trunk/bugs/tests.obsolete/bug1201.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: 436 byte(s)
(* bug1201.2.sml *)

signature SA =
sig
  type t
end;

signature SX =
sig
  structure A : SA
end;

signature SY =
sig
  structure A : SA
end;

functor F
  (structure X : SX)
   (structure Y : SY  where A = X.A) =
struct
  fun f(x: X.A.t, y: Y.A.t list) = x::y
end;

functor G(structure A : SA) : 
  sig
    functor G1(structure Y: SY where A = A) : sig end
  end =
struct
  functor G1 = F(structure X = struct structure A = A end)
end;

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