Skip to content

Commit e494b1d

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 e494b1d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

quint/io-cli-tests.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ quint typecheck ./testFixture/TrivialTypeError.qnt 2> >(sed "s:$(pwd):.:" >&2)
142142
Trying to unify str and int
143143
144144
2: val x : int = "not an int"
145-
^^^^^^^^^^^^^^^^^^^^^^^^^^
145+
^^^^^^^^^^^^
146146
147147
error: typechecking failed
148148
```
@@ -1036,7 +1036,7 @@ HOME/testFixture/typechecking/FileWithError.qnt:2:3 - error: [QNT000] Couldn't u
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)