I believe this is caused a bug in Elixir where our specs were out of date.
It should be fixed in Elixir v1.3.0-rc.1.



*José Valim*
www.plataformatec.com.br
Skype: jv.ptec
Founder and Director of R&D

On Sat, Jun 11, 2016 at 12:15 PM, Robert Dober <[email protected]>
wrote:

> I would appreciate if somebody could give me a hint how to get rid of this
> warning
> cli.ex:56: The call 'Elixir.File':open(filename@1::binary(),['utf8',...])
> breaks the contract ('Elixir.Path':t(),fun((io_device()) -> res)) ->
> {'ok',res} | {'error',posix()}
>     ; ('Elixir.Path':t(),[mode() | 'ram']) -> {'ok',io_device()} |
> {'error',posix()} in the 2nd argument
> for the code
>
> defp open_file(filename), do: io_device(File.open(filename, [:utf8]),
> filename)
>
> I googled for this (proabably badly) and tried to tweak the code (probably
> beadly) to no success.
>
> Thx in advance
>
> Robert
> --
> Progress is impossible without change, and those who cannot change their
> minds cannot change anything.
> -- George Bernard Shaw
>
> --
> 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 [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/elixir-lang-talk/CA%2Bvts6saZxa62NJ3yt7qi6vVB-s41wtxEd%2BBbvVWqFfuJo3gAw%40mail.gmail.com
> <https://groups.google.com/d/msgid/elixir-lang-talk/CA%2Bvts6saZxa62NJ3yt7qi6vVB-s41wtxEd%2BBbvVWqFfuJo3gAw%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elixir-lang-talk/CAGnRm4L0R7ZM6Yov4H%2B1j9c0%3D-y67DuN6-fqCgjfQW_847LL-g%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to