typst/tests/typ/func-page-error.typ
Laurenz 1c40dc42e7 Dynamic values, Types, Arrays, and Dictionaries 🚀
- Identifiers are now evaluated as variables instead of being plain values
- Constants like `left` or `bold` are stored as dynamic values containing the respective rust types
- We now distinguish between arrays and dictionaries to make things more intuitive (at the cost of a bit more complex parsing)
- Spans were removed from collections (arrays, dictionaries), function arguments still have spans for the top-level values to enable good diagnostics
2021-01-02 19:37:10 +01:00

12 lines
213 B
XML

// Test error cases of the `page` function.
// Invalid paper.
[page nonexistant]
// Aligned axes.
[page main-dir: ltr]
// compare-ref: false
// error: 4:7-4:18 unknown variable
// error: 7:17-7:20 aligned axis