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

Support Record Type spec #280

Open
yoshihiro503 opened this issue Aug 9, 2019 · 0 comments
Open

Support Record Type spec #280

yoshihiro503 opened this issue Aug 9, 2019 · 0 comments

Comments

@yoshihiro503
Copy link
Contributor

The Problem

Ordinary record type expression has no field information in type specs. like this:

-spec foo(#rec{}) -> ok.

Then, the field_types field of TyRecord in absform is almost empty.

(I think that many Erlang programmer does not know the explicit record type field syntax)

links

What should we do

Add a parameter module_info to the Type.of_absform like From_erlang.expr_of_erlang_expr'.

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