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

Go code generator variable 'model' conflicts if SYSL model has a field named 'model' #1074

Open
alextmz opened this issue Aug 10, 2021 · 0 comments
Labels

Comments

@alextmz
Copy link

alextmz commented Aug 10, 2021

Description

Not sure if my usage is up to date or correct, so let me know if not.
When using the branch anzdaddy/relgom, the Go code generated can be invalid (not compilable) due to a naming conflict if the SYSL model used has a field of name 'model':

!table something:
      model <: something

Can provide more details in private. There is a write-up ready that cannot be posted here.

Steps to Reproduce

  1. Have a model with a field named 'model'
  2. Generate Go code using branch anzdaddy/relgom
  3. Try to compile the code - type mismatch errors are thrown

Expected behavior

Compilation successful

Actual behavior

Compilation fails - type mismatch errors are thrown

@alextmz alextmz added the bug label Aug 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant