leo/tests/compiler/scalar/square_root_fail.leo
2022-07-28 16:46:30 -07:00

10 lines
190 B
Plaintext

/*
namespace: Compile
expectation: Fail
input_file:
- inputs/scalars.in
*/
function main(a: scalar) -> scalar {
return a.square_root(); // square root not supported for scalar types.
}