Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Make is_dataclass robust #1385

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

Merged
merged 1 commit into from
Dec 27, 2022
Merged

Conversation

czgdp1807
Copy link
Collaborator

The main branch gives the following error,

semantic error: Only dataclass decorated classes and Enum subclasses are supported.
  --> integration_tests/structs_14.py:19:1 - 27:20
   |
19 |    class buffer_struct_clink:
   |    ^^^^^^^^^^^^^^^^^^^^^^^^^^...
...
   |
27 |        buffer7: c64[32]
   | ...^^^^^^^^^^^^^^^^^^^^ 

This PR fixes the same by making is_dataclass robust with respect to decorators in AST.

@czgdp1807 czgdp1807 marked this pull request as ready for review December 27, 2022 05:48
@czgdp1807 czgdp1807 merged commit 51bbc8e into lcompilers:main Dec 27, 2022
@czgdp1807 czgdp1807 deleted the bindc_struct_arr_1 branch December 27, 2022 05:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants