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

How to use rec2json with a record that has a field with the same name? #33

Open
alhambra1 opened this issue May 22, 2020 · 0 comments
Open

Comments

@alhambra1
Copy link

If we add a field test_person :: binary() to the test_person record in file test/test_rec.hrl, we get an error when running make tests:

test/test_person.erl:260: function test_person/1 already defined
test/test_person.erl:1: Warning: function test_person/1 already exported

We are seeing this warning in our project that has a record with a field fo the same name. Is there a way to use rec2json with records that have a field with the same name? If so, how?

-Sincerely

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

No branches or pull requests

1 participant