cx
cx copied to clipboard
Error Message: expected either 'i32' or 'i64', got 'ident'
Describe the bug error: expected either 'i32' or 'i64', got 'ident'
To Reproduce Steps to reproduce the behavior:
- Go to 'SkycoinProjects/cx/tests'
- Click on 'test-ar-2'
- Scroll down to 'to sort function'
- See an error in the comments
Expected behavior the temp variable suppose to get i32
Screenshots
Desktop (please complete the following information):
- OS: [e.g. ISO]
- CX Version [e.g. 0.5.18]
Error produces after running code from test issue-157
error: test1.cx:14 function 'i32.add' expected receiving variable of type 'i32'; 'ident' was provided
error: test1.cx:14 wrong index type; expected either 'i32' or 'i64', got 'ident'