← 输入框|github.com|刷新
Skip to content

u16 left shift problem, LPython 18.1 #2163

Closed

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

Activity

  1. added
    BLOCKER
    on Jul 16, 2023
  2. certik commented on Jul 17, 2023

    @certik
    Contributor

    @rebcabin fixed by @Shaikh-Ubaid in 1h!!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    BLOCKER

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions