Elixir 1.3.2 dialyzer extra warnings

65 views
Skip to first unread message

Илья Ткачук

unread,
Aug 5, 2016, 9:59:42 AM8/5/16
to elixir-lang-talk
Hi
On elixir 1.3.2 when I run task mix dialyzer ( use https://github.com/jeremyjh/dialyxir package ) , it generates many warnings like 

```
The variable _@1 can never match since previous clauses completely covered the type #{'__struct__':='Elixir.MyStruct', _=>_}
```

in case of using code like this

```
%MyStruct{data | foo: bar}
```

On OTP17 and OTP18 this package worked correctly. But after update to OTP19 dialyzer gives many warnings like this.. How I can fix it?

Michał Muskała

unread,
Aug 5, 2016, 10:11:06 AM8/5/16
to elixir-l...@googlegroups.com
It was fixed in master https://github.com/elixir-lang/elixir/pull/5067

Michał.
> --
> You received this message because you are subscribed to the Google Groups "elixir-lang-talk" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to elixir-lang-ta...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/elixir-lang-talk/23783645-8c50-499e-adb4-116afafa50b1%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

signature.asc

Илья Ткачук

unread,
Aug 5, 2016, 10:20:31 AM8/5/16
to elixir-lang-talk
Thanks!

пятница, 5 августа 2016 г., 17:11:06 UTC+3 пользователь Michał Muskała написал:
Reply all
Reply to author
Forward
0 new messages