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