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

elvis does not recognize latest maps comprehension #576

Open
arodionov53 opened this issue Nov 3, 2023 · 0 comments
Open

elvis does not recognize latest maps comprehension #576

arodionov53 opened this issue Nov 3, 2023 · 0 comments
Labels

Comments

@arodionov53
Copy link

Code:

-module(dg1).

-export([smh/1]).

-spec smh(map()) -> [tuple()].
smh(Map) ->
    [{B, A} || A := B <- Map].

Error:

Error: {unhandled_abstract_form,
                           {m_generate,
                               [{text,"<-"},{location,{7,23}}],
                               {map_field_exact,
                                   [{text,":="},{location,{7,18}}],
                                   {var,[{text,"A"},{location,{7,16}}],'A'},
                                   {var,[{text,"B"},{location,{7,21}}],'B'}},
                               {var,[{text,"Map"},{location,{7,26}}],'Map'}}}```
elvis version:

{project_plugins, [
{rebar3_lint, "3.1.0"}
[]}.]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants