leo/tests/compiler/scalar/div_fail.leo

10 lines
188 B
Plaintext
Raw Normal View History

2022-07-29 02:46:30 +03:00
/*
namespace: Compile
expectation: Fail
input_file:
- inputs/scalars.in
*/
function main(a: scalar, b: scalar) -> scalar {
return a / b; // division not supported for scalar types.
}