summaryrefslogtreecommitdiffhomepage
path: root/tests/custom
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2022-08-06 14:10:23 +0200
committerJo-Philipp Wich <jo@mein.io>2022-08-06 23:25:11 +0200
commit41ccd193acceb1532ab1372433351c0a1eac59c2 (patch)
tree304d8b8eefb04c3bd62f938ae271b6fd65535ee7 /tests/custom
parentf1e393873a17571ada80c189fbedef020d89cdad (diff)
compiler: don't treat offset 0 special at syntax errors
If a compile error is raised at offset 0, try to resolve line and character position anyway. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'tests/custom')
-rw-r--r--tests/custom/04_modules/06_export_errors1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/custom/04_modules/06_export_errors b/tests/custom/04_modules/06_export_errors
index 5c9f676..83227b1 100644
--- a/tests/custom/04_modules/06_export_errors
+++ b/tests/custom/04_modules/06_export_errors
@@ -10,6 +10,7 @@ export let x = 1;
-- Expect stderr --
Syntax error: Exports may only appear at top level of a module
+In line 1, byte 1:
`export let x = 1;`
^-- Near here