diff options
Diffstat (limited to 'test/mono/mapping.sail')
| -rw-r--r-- | test/mono/mapping.sail | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/test/mono/mapping.sail b/test/mono/mapping.sail new file mode 100644 index 00000000..ecc06b0b --- /dev/null +++ b/test/mono/mapping.sail @@ -0,0 +1,16 @@ +$include <flow.sail> + +/* Trivial example with mapping that doesn't really need monomorphised */ + +enum foo = {A,B} + +mapping map_foo : foo <-> bool = { + A <-> true, + B <-> false +} + +val run : unit -> unit effect {escape} + +function run() = { + assert(map_foo(A)) +}
\ No newline at end of file |
