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

Variable '_Vx44' exported from 'case' #36

Open
fogfish opened this issue Mar 10, 2018 · 0 comments
Open

Variable '_Vx44' exported from 'case' #36

fogfish opened this issue Mar 10, 2018 · 0 comments

Comments

@fogfish
Copy link
Owner

fogfish commented Mar 10, 2018

t() ->
   [option ||
      A =< case 1 of _ -> 1 end,
      B =< case 1 of _ -> 3 end,
      cats:unit(A + B)
   ].

Any match at case generates warning:

variable '_Vx44' exported from 'case' (line NN)
 30 t() ->
 31     case
 32         datum_cat_option:unit(case 1 of
 33                                   _Vx44 ->
 34                                       1
 35                               end)
 36     of
 37         undefined ->
 38             undefined;
 39         A ->
 40             case
 41                 datum_cat_option:unit(case 1 of
 42                                           _Vx44 ->
 43                                               3
 44                                       end)
 45             of
 46                 undefined ->
 47                     undefined;
 48                 B ->
 49                     datum_cat_option:unit(A + B)
 50             end
 51     end.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant