Import Upstream version 20180207
[hcoop/debian/mlton.git] / regression / fail / overloading-context.1.sml
CommitLineData
7f918cf1
CE
1(* This must fail, because the overloading context can be no larger than the
2 * smallest enclosing strdec. So, the declaration of double must be resolved
3 * (with type int -> int) before continuing.
4 *)
5structure S =
6 struct
7 fun double x = x + x
8 end
9val _ = S.double 2.0