cx icon indicating copy to clipboard operation
cx copied to clipboard

Error Message: expected either 'i32' or 'i64', got 'ident'

Open arfan499 opened this issue 4 years ago • 1 comments

Describe the bug error: expected either 'i32' or 'i64', got 'ident'

To Reproduce Steps to reproduce the behavior:

  1. Go to 'SkycoinProjects/cx/tests'
  2. Click on 'test-ar-2'
  3. Scroll down to 'to sort function'
  4. 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]

arfan499 avatar Oct 16 '20 10:10 arfan499

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'

archerixx avatar Mar 15 '21 21:03 archerixx