diff options
author | Jo-Philipp Wich <jo@mein.io> | 2022-08-06 09:28:37 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-06 09:28:37 +0200 |
commit | f1e393873a17571ada80c189fbedef020d89cdad (patch) | |
tree | 935044691733689fbae18879a8bb70bf15672d75 /tests/custom/04_modules/06_export_errors | |
parent | e55965a3d170f60776ffa2d82b2711d9ea3a0211 (diff) | |
parent | b4a3f6828478f1d831ae11ee4d3dcd82b93407c8 (diff) |
Merge pull request #97 from jow-/module-import-export-fixes
Diffstat (limited to 'tests/custom/04_modules/06_export_errors')
-rw-r--r-- | tests/custom/04_modules/06_export_errors | 26 |
1 files changed, 12 insertions, 14 deletions
diff --git a/tests/custom/04_modules/06_export_errors b/tests/custom/04_modules/06_export_errors index c02a547..5c9f676 100644 --- a/tests/custom/04_modules/06_export_errors +++ b/tests/custom/04_modules/06_export_errors @@ -36,15 +36,14 @@ import "./files/test.uc"; -- Expect stderr -- Syntax error: Unable to compile module './files/test.uc': -Syntax error: Exports may only appear at top level of a module -In line 2, byte 2: - - ` export let x = 1;` - ^-- Near here - + | Syntax error: Exports may only appear at top level of a module + | In ./files/test.uc, line 2, byte 2: + | + | ` export let x = 1;` + | ^-- Near here -In line 1, byte 25: +In [stdin], line 1, byte 25: `import "./files/test.uc";` Near here --------------^ @@ -72,15 +71,14 @@ export { y as x }; -- Expect stderr -- Syntax error: Unable to compile module './files/test-duplicate.uc': -Syntax error: Duplicate export 'x' for module './files/test-duplicate.uc' -In line 4, byte 15: - - `export { y as x };` - Near here ----^ - + | Syntax error: Duplicate export 'x' for module './files/test-duplicate.uc' + | In ./files/test-duplicate.uc, line 4, byte 15: + | + | `export { y as x };` + | Near here ----^ -In line 1, byte 35: +In [stdin], line 1, byte 35: `import "./files/test-duplicate.uc";` Near here ------------------------^ |