Import Upstream version 20180207
[hcoop/debian/mlton.git] / regression / id.sml
CommitLineData
7f918cf1
CE
1(* id.sml *)
2
3(* Checks parsing of identifiers. *)
4
5val ? = {* = op*, + = op+}
6val op* = # * ?
7val op+ = # + ?;
8
9type '& = ' list
10type t = int&
11type ''`` = ''
12type ('0,'_) == = '_`` &;
13
14fun !x=x=x
15fun ''`x:''=(x=x;x);
16
17infix v
18fun 3v? = 0
19 | _v? = 1;