view tests/modproj.ur @ 1639:6c00d8af6239

Add a new scoping check for unification variables, to fix a type inference bug
author Adam Chlipala <adam@chlipala.net>
date Sun, 18 Dec 2011 11:29:13 -0500
parents 71bafe66dbe1
children
line wrap: on
line source
signature S1 = sig
        type t
        val zero : t
end
signature S2 = sig
        type t = int
        val zero : t
end
structure S = struct
        type t = int
        val zero = 0
end
structure S1 : S1 = S
structure S2 : S2 = S

type t = S1.t
val zero : t = S1.zero

type t = S2.t
val zero : int = S2.zero

structure T = S1
val main : S1.t = T.zero