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/bug1318.5.sml
ViewVC logotype

View of /tests/trunk/bugs/tests.obsolete/bug1318.5.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: 339 byte(s)
(* bug1318.5.sml *)

funsig FSIG() = 
sig
  type a
  type b
  val f : a -> b
end;

functor FUN(functor F : FSIG) = 
struct
  structure S = F()
  type a = S.a
  type b = S.b
  val g = S.f : S.a -> S.b
end;

functor F0 () =
struct
  type a = bool
  type b = int
  fun f(x:a) : b = 3
end;

structure A = FUN(functor F = F0);

A.g true : int;

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