Mercurial > urweb
view tests/functorMadness.ur @ 2126:ec1614fb97bb
Change MonoReduce to do fixed-pointing, since it sometimes enables more optimizations for itself (e.g., yanking lambdas out of [case]s)
author | Adam Chlipala <adam@chlipala.net> |
---|---|
date | Fri, 06 Mar 2015 09:46:21 -0500 |
parents | 210fb3dfc483 |
children |
line wrap: on
line source
functor F(M : sig end) = struct fun f () = f () functor G(M : sig end) = struct fun g () = f () end end structure M1 = F(struct end) structure M2 = F(struct end) structure N1 = M1.G(struct end) structure N2 = M2.G(struct end) fun main () : transaction page = return (N1.g ()); return (N2.g ()); return <xml/>