Skip to content

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

@alhambra1

Description

@alhambra1

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions