leo/tests/expectations/compiler/statements/assign_ternary.out
2022-11-08 15:49:47 -08:00

6 lines
400 B
Plaintext

---
namespace: Compile
expectation: Fail
outputs:
- "Error [ETYC0372003]: Expected type `boolean` but type `u32` was found\n --> compiler-test:5:30\n |\n 5 | let x: bool = true ? x: true;\n | ^\nError [EAST0372009]: variable `x` shadowed by\n --> compiler-test:5:13\n |\n 5 | let x: bool = true ? x: true;\n | ^\n"