leo/tests/expectations/compiler/statements/assign_ternary.out
Pranav Gaddamadugu e1a148a93e Regen expectations
2022-10-05 23:52:37 -07:00

6 lines
401 B
Plaintext

---
namespace: Compile
expectation: Fail
outputs:
- "Error [ETYC0372003]: Expected type `boolean` but type `u32` was found\n --> compiler-test:4:19\n |\n 4 | function main(x: u32) {\n | ^\nError [EAST0372011]: variable `x` shadowed by\n --> compiler-test:5:9\n |\n 5 | let x: bool = true ? x: true;\n | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n"