-
Notifications
You must be signed in to change notification settings - Fork 153
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
fix: allow constant/trait constants depend on each other #1622
fix: allow constant/trait constants depend on each other #1622
Conversation
…r-of-another-self-constant
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jeshecdom please review the interpreter changes
…r-of-another-self-constant
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What error message will you get if you do something like this?
contract Test {
a: Int = 1;
const B: Int = 10;
const A: Int = self.B + self.test();
fun test(): Int {
return self.a;
}
}
I think this PR should be put on hold after issue #1655 is resolved first, because it is related to constant initialization. |
…r-of-another-self-constant
Issue
Closes #924
Closes #1645
Checklist