diff options
Diffstat (limited to 'test/typecheck')
| -rw-r--r-- | test/typecheck/pass/tyvar_names.sail | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/test/typecheck/pass/tyvar_names.sail b/test/typecheck/pass/tyvar_names.sail new file mode 100644 index 00000000..eb31307e --- /dev/null +++ b/test/typecheck/pass/tyvar_names.sail @@ -0,0 +1,25 @@ +default Order dec + +$include <prelude.sail> + +$option -dmagic_hash + +function main((): unit) -> unit = { + let x = (3 + 3) : {'n, 'n == 6. int('n)}; + _check(x : int('x#0)); + let y = (2 + 4) : {'n, 'n == 6. int('n)}; + _check(y : int('y#0)); + let x = 26 : {'n, 'n == 26. int('n)}; + _check(x : int('x#1)); + () +} + +function main2((): unit) -> unit = { + let x = (3 + 3) : {'n, 'n == 6. int('n)}; + _check(x : int('x#0)); + let y = (2 + 4) : {'n, 'n == 6. int('n)}; + _check(y : int('y#0)); + let x = 26 : {'n, 'n == 26. int('n)}; + _check(x : int('x#1)); + () +}
\ No newline at end of file |
