summaryrefslogtreecommitdiff
path: root/tests/open_functor.ur
blob: 36525a057a5cf2d999844c61b59de311d279d38d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
signature S = sig
        type t
        val x : t
end

functor F (M : S) : S where type t = M.t = struct
        type t = M.t
        val x = M.x
end

structure M = F(struct
        type t = int
        val x = 0
end)

open M