-
Notifications
You must be signed in to change notification settings - Fork 38
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
set[int8] cannot initialized with values #1256
Comments
I believe you meant As as an aside, you can also use |
sure |
The examples in the body are still wrong, as in those should definitely be type errors; since you're attempting to assign a set to a sequence. The work around is confusing, is there a converter at play there because it would not work? |
this is more related to integer literals inference which most time inference to const
my_array: array[4, int8] = [1, 1, 1, 1]
my_tuple: tuple[x, y: int8] = (1, 1)
var
x: int32
y: int32
x = 1 shl x
y = 1 shr y
|
Example
Actual Output
Expected Output
compiled
Workaround
The text was updated successfully, but these errors were encountered: