Files
lix/tests/functional2/lang/string-coerce-integers/eval-fail-accidental-coerce.err.exp
T
piegamesandeldritch horrors 8782c7533f eval: Improve ExprConcatStrings error messages and positions
"while evaluating a path segment" was just plain wrong

Co-authored-by: eldritch horrors <pennae@lix.systems>
Change-Id: I827374635df2887d17a8ee8b1755c078bf0b506b
2026-04-30 17:14:43 +02:00

15 lines
370 B
Plaintext

error:
… while evaluating x
at /pwd/in.nix:1:21:
1| let x = "" + 42; in x == "42"
| ^
2|
… while concatenating
at /pwd/in.nix:1:12:
1| let x = "" + 42; in x == "42"
| ^
2|
error: cannot coerce an integer to a string: 42