Change FC end column to be one past the end

This commit is contained in:
2026-02-18 10:39:56 -08:00
parent cd31156404
commit 587b2c4a60
12 changed files with 20 additions and 21 deletions

View File

@@ -7,4 +7,4 @@ ERROR at tests/BadAlt.newt:6:6--6:13: Prelude._:<_ not a constructor for (Prelud
foo (xs :< x) = x
^^^^^^^
ERROR at tests/BadAlt.newt:1:1--1:2: Compile failed
ERROR at tests/BadAlt.newt:1:1--1:1: Compile failed

View File

@@ -6,4 +6,4 @@ ERROR at tests/Duplicate.newt:5:1--5:5: Duplicate.Left is already defined at tes
data Either : U -> U -> U where
^^^^
ERROR at tests/Duplicate.newt:1:1--1:2: Compile failed
ERROR at tests/Duplicate.newt:1:1--1:1: Compile failed

View File

@@ -7,4 +7,4 @@ ERROR at tests/ErrMsg2.newt:6:13--6:15: Expected '=>' at Keyword:->
foo x = \ x -> x
^^
ERROR at tests/ErrMsg2.newt:1:1--1:2: Compile failed
ERROR at tests/ErrMsg2.newt:1:1--1:1: Compile failed

View File

@@ -18,4 +18,4 @@ ERROR at tests/ErrorDup.newt:5:6--5:9: Nat already declared
data Nat = Z | S Nat
^^^
ERROR at tests/ErrorDup.newt:1:1--1:2: Compile failed
ERROR at tests/ErrorDup.newt:1:1--1:1: Compile failed

View File

@@ -6,4 +6,4 @@ ERROR at tests/LitConCase.newt:7:5--7:11: expected Prim.Int
foo MkUnit = MkUnit
^^^^^^
ERROR at tests/LitConCase.newt:1:1--1:2: Compile failed
ERROR at tests/LitConCase.newt:1:1--1:1: Compile failed

View File

@@ -7,4 +7,4 @@ ERROR at tests/Possible.newt:6:5--6:8: possible constructors: [Prelude.Z, Prelud
foo ()
^^^
ERROR at tests/Possible.newt:1:1--1:2: Compile failed
ERROR at tests/Possible.newt:1:1--1:1: Compile failed

View File

@@ -7,4 +7,4 @@ ERROR at tests/Quantity.newt:11:15--11:16: used erased value x$0 (FIXME FC may b
bar {x} = foo x
^
ERROR at tests/Quantity.newt:1:1--1:2: Compile failed
ERROR at tests/Quantity.newt:1:1--1:1: Compile failed