continue after import error, fix error order

This commit is contained in:
2026-02-24 22:25:16 -08:00
parent 6e7e123847
commit 4c5cd4dec0
4 changed files with 56 additions and 18 deletions

View File

@@ -1,10 +1,10 @@
*** Process tests/ErrorDup.newt
module ErrorDup
ERROR at tests/ErrorDup.newt:9:7--9:10: Nat already declared
record Nat where
ERROR at tests/ErrorDup.newt:5:6--5:9: Nat already declared
data Nat = Z | S Nat
class Nat where
^^^
data Nat = Z | S Nat
^^^
ERROR at tests/ErrorDup.newt:7:8--7:11: Nat already declared
data Nat = Z | S Nat
@@ -12,10 +12,10 @@ ERROR at tests/ErrorDup.newt:7:8--7:11: Nat already declared
record Nat where
^^^
ERROR at tests/ErrorDup.newt:5:6--5:9: Nat already declared
data Nat = Z | S Nat
ERROR at tests/ErrorDup.newt:9:7--9:10: Nat already declared
record Nat where
data Nat = Z | S Nat
^^^
class Nat where
^^^
ERROR at tests/ErrorDup.newt:1:1--1:1: Compile failed