Files
n8n-openai-adapter/lib/elixir
Magnus Lång 6e2c29c9d4 Fix Dialyzer warnings on opaque protocol calls (#5286)
Prior to this change, calling a protocol function with an opaque type
would yield a warning, as Dialyzer concludes that the impl_for/1
function can't handle opaque arguments, since all clauses would
destructure their arguments in some way.

By adding a catch-all clause that does not destructure its argument,
Dialyzer no longer draws this conclusion, and the warnings go away.

As noted in the protocol.ex comment, this is technically a hack as it
relies on Dialyzer not being smart enough. However, I would not expect
it to break soon, if ever.

Signed-off-by: José Valim <jose.valim@plataformatec.com.br>
2016-10-04 14:17:47 +02:00
..
2016-05-13 09:28:50 +02:00
2014-07-29 10:38:20 +02:00
2016-06-30 22:18:32 +01:00