Skip to content

u16 left shift problem, LPython 18.1 #2163

Closed
@rebcabin

Description

@rebcabin

Big blocker for some system code I'm writing

from lpython import u16

FLAG : u16 = u16(u16(1) << u16(0))
/Users/brian/CLionProjects/lpython/src/bin/python /Users/brian/CLionProjects/lpython/lasr/LP-pycharm/IssueCH152.py 
code generation error: Variable type not supported 1
 --> /Users/brian/CLionProjects/lpython/lasr/LP-pycharm/IssueCH152.py:3:1
  |
3 | FLAG : u16 = u16(u16(1) << u16(0))
  | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 


Note: if any of the above error or warning messages are not clear or are lacking
context please report it to us (we consider that a bug that must be fixed).

Process finished with exit code 3

Metadata

Metadata

Assignees

No one assigned

    Labels

    BLOCKERworkaround not found yet

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions