Skip to content

Commit e380b2a

Browse files
author
Shon Feder
committed
Update error locations
Instead of flagging the entire declaration as erroneous, we only indicate the problematic expression now.
1 parent 7f1ed57 commit e380b2a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

quint/io-cli-tests.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -138,11 +138,11 @@ quint typecheck ./testFixture/TrivialTypeError.qnt 2> >(sed "s:$(pwd):.:" >&2)
138138

139139
<!-- !test err typecheck failure gives non-zero exit -->
140140
```
141-
./testFixture/TrivialTypeError.qnt:2:3 - error: [QNT000] Couldn't unify str and int
141+
./testFixture/TrivialTypeError.qnt:2:17 - error: [QNT000] Couldn't unify str and int
142142
Trying to unify str and int
143143
144144
2: val x : int = "not an int"
145-
^^^^^^^^^^^^^^^^^^^^^^^^^^
145+
^^^^^^^^^^^^
146146
147147
error: typechecking failed
148148
```
@@ -1032,11 +1032,11 @@ quint typecheck ./testFixture/typechecking/ImportFileWithError.qnt 2>&1 | sed 's
10321032

10331033
<!-- !test out error for file -->
10341034
```
1035-
HOME/testFixture/typechecking/FileWithError.qnt:2:3 - error: [QNT000] Couldn't unify bool and int
1035+
HOME/testFixture/typechecking/FileWithError.qnt:2:16 - error: [QNT000] Couldn't unify bool and int
10361036
Trying to unify bool and int
10371037
10381038
2: val a: int = true
1039-
^^^^^^^^^^^^^^^^^
1039+
^^^^
10401040
10411041
error: typechecking failed
10421042
```

0 commit comments

Comments
 (0)