Import Upstream version 20180207
[hcoop/debian/mlton.git] / regression / withtype2.sml
CommitLineData
7f918cf1
CE
1(* withtype2.sml *)
2
3(* Checks scoping rules of withtype *)
4
5type u = real
6
7datatype t = A of v | B of u
8withtype u = int
9and v = u
10
11val a = A 1.0
12val b = B 1
13
14val x : v = 1.0
15val y : u = 1
16
17fun uEq (a: u, b: u) = a = b