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
If we add a field
test_person :: binary()to thetest_personrecord in filetest/test_rec.hrl, we get an error when runningmake tests: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