diff options
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/typ/bugs/3110-no-type-ctor-or-field.typ | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/typ/bugs/3110-no-type-ctor-or-field.typ b/tests/typ/bugs/3110-no-type-ctor-or-field.typ new file mode 100644 index 00000000..61d65253 --- /dev/null +++ b/tests/typ/bugs/3110-no-type-ctor-or-field.typ @@ -0,0 +1,15 @@ +// Issue #3110: let the error message report the type name. +// https://github.com/typst/typst/issues/3110 +// Ref: false + +--- +// Error: 2-9 type content does not have a constructor +#content() + +--- +// Error: 6-12 type integer does not contain field `MAXVAL` +#int.MAXVAL + +--- +// Error: 6-18 type string does not contain field `from-unĂ¯code` +#str.from-unĂ¯code(97) |
