Skip to content
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

@constuctor compile error when field doesnot have a declared type. #60

Closed
jxnu-liguobin opened this issue Jul 10, 2021 · 0 comments · Fixed by #61
Closed

@constuctor compile error when field doesnot have a declared type. #60

jxnu-liguobin opened this issue Jul 10, 2021 · 0 comments · Fixed by #61
Assignees
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@jxnu-liguobin
Copy link
Member

q"$mods var $pat = $expr"

This Tree cannot get tpt which contains value' type.

The temporary solution is to specify the type for the internal field.

q"$mods val $tname: $tpt = $expr"

We need tpt to generate construction

@jxnu-liguobin jxnu-liguobin added bug Something isn't working help wanted Extra attention is needed labels Jul 10, 2021
@jxnu-liguobin jxnu-liguobin changed the title @constuctor not work when field doesnot have a declared type. @constuctor compile error when field doesnot have a declared type. Jul 10, 2021
@jxnu-liguobin jxnu-liguobin self-assigned this Jul 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant