mirror of
https://github.com/ProvableHQ/leo.git
synced 2024-12-12 11:27:41 +03:00
6 lines
2.7 KiB
Plaintext
6 lines
2.7 KiB
Plaintext
---
|
|
namespace: Compile
|
|
expectation: Fail
|
|
outputs:
|
|
- "Error [ETYC0372007]: Expected one type from `field, group, i8, i16, i32, i64, i128`, but got `u8`\n --> compiler-test:5:24\n |\n 5 | let b: bool = -a == -1u8;\n | ^\nError [ETYC0372008]: The value -1 is not a valid `u8`\n --> compiler-test:5:29\n |\n 5 | let b: bool = -a == -1u8;\n | ^^^^\nError [ETYC0372007]: Expected one type from `field, group, i8, i16, i32, i64, i128`, but got `u8`\n --> compiler-test:6:24\n |\n 6 | let c: bool = -a > -1u8;\n | ^\nError [ETYC0372008]: The value -1 is not a valid `u8`\n --> compiler-test:6:28\n |\n 6 | let c: bool = -a > -1u8;\n | ^^^^\nError [ETYC0372007]: Expected one type from `field, group, i8, i16, i32, i64, i128`, but got `u8`\n --> compiler-test:7:24\n |\n 7 | let d: bool = -a < -1u8;\n | ^\nError [ETYC0372008]: The value -1 is not a valid `u8`\n --> compiler-test:7:28\n |\n 7 | let d: bool = -a < -1u8;\n | ^^^^\nError [ETYC0372007]: Expected one type from `field, group, i8, i16, i32, i64, i128`, but got `u8`\n --> compiler-test:8:24\n |\n 8 | let e: bool = -a >= -1u8;\n | ^\nError [ETYC0372008]: The value -1 is not a valid `u8`\n --> compiler-test:8:29\n |\n 8 | let e: bool = -a >= -1u8;\n | ^^^^\nError [ETYC0372007]: Expected one type from `field, group, i8, i16, i32, i64, i128`, but got `u8`\n --> compiler-test:9:24\n |\n 9 | let f: bool = -a <= -1u8;\n | ^\nError [ETYC0372008]: The value -1 is not a valid `u8`\n --> compiler-test:9:29\n |\n 9 | let f: bool = -a <= -1u8;\n | ^^^^\nError [ETYC0372007]: Expected one type from `field, group, i8, i16, i32, i64, i128`, but got `u8`\n --> compiler-test:10:22\n |\n 10 | let g: u8 = -a * -1u8;\n | ^\nError [ETYC0372008]: The value -1 is not a valid `u8`\n --> compiler-test:10:26\n |\n 10 | let g: u8 = -a * -1u8;\n | ^^^^\nError [ETYC0372007]: Expected one type from `field, group, i8, i16, i32, i64, i128`, but got `u8`\n --> compiler-test:11:22\n |\n 11 | let h: u8 = -a ** -1u8;\n | ^\nError [ETYC0372008]: The value -1 is not a valid `u8`\n --> compiler-test:11:27\n |\n 11 | let h: u8 = -a ** -1u8;\n | ^^^^\n"
|