Skip to content

types do not resolve to simplest type #32

@stephb9959

Description

@stephb9959

Hi,

If I define a record like this:

-record( thing , 
{
 prop1 :: binary() ,
prop2 :: mylist()
}).

And in an include file I have defined

-type mylist :: [ integer() ].

-export_type ([mylist/0]).

I am finding that rec2json does not reduce mylist() to [integer()] and therefore never processes prop2.

Am I missing something or is this intended behaviour or should the be filed as an enhancement?

Thanks

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