unison/unison-src/transcripts/fix2238.output.md

32 lines
718 B
Markdown
Raw Permalink Normal View History

2021-07-16 18:46:13 +03:00
This should not typecheck - the inline `@eval` expression uses abilities.
``` unison
2021-08-24 21:33:27 +03:00
structural ability Abort where abort : x
2021-07-16 18:46:13 +03:00
ex = {{ @eval{abort} }}
```
``` ucm
2021-07-16 18:46:13 +03:00
Loading changes detected in scratch.u.
2021-07-16 18:57:05 +03:00
The expression in red needs the {Abort} ability, but this location does not have access to any abilities.
2021-07-16 18:46:13 +03:00
3 | ex = {{ @eval{abort} }}
```
This file should also not typecheck - it has a triple backticks block that uses abilities.
``` ucm
scratch/main> load unison-src/transcripts/fix2238.u
2021-07-16 18:46:13 +03:00
Loading changes detected in unison-src/transcripts/fix2238.u.
The expression in red needs the {Abort} ability, but this location does not have access to any abilities.
7 | abort + 1
2021-07-16 18:46:13 +03:00
```