-
Notifications
You must be signed in to change notification settings - Fork 164
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
Member initialisation doesn't work for cast i64 #2722
Comments
Assigned: @tanay-man |
I think the Constant number might be handled in the data member initialisation. With that case, for this we need to handle the |
This doesn't work for dataclass as well. from lpython import i32, i64
@dataclass
class test:
i: i64 = i64(4)
t: test = test()
print(t) |
Note that |
I am not sure if we need to support this use case at all, since this is a class variable. I would say in terms of priorities, this is below regular instance variables and inheritance / virtual functions. |
That is a typo, it should be |
This is fixed in the latest commit. 4 tests were failing due to this, that is why I was trying to fix this. |
@tanay-man we will handle this later. We will complete the initial implementation and move on to other implementations |
@Thirumalai-Shaktivel can you close this as it is fixed? |
MRE:
The text was updated successfully, but these errors were encountered: