Demonstrates a problem with :opencensus
typing.
To reproduce: mix dialyzer
.
To reproduce from the gist:
cd `mktemp -d`
git clone https://gist.github.com/garthk/fb0d89181372136f150d7adc539356c3
cd fb0d89181372136f150d7adc539356c3
docker build -t start_span .
docker run --rm -ti start_span
Output after rebuilding PLTs:
lib/start_span.ex:13:no_return
Function fail/0 has no local return.
________________________________________________________________________________
lib/start_span.ex:14:call
The function call will not succeed.
StartSpan.start_span(<<102, 97, 105, 108>>, :undefined, [{:kind, :SERVER}])
will never return since it differs in arguments with
positions 2nd from the success typing arguments:
(
binary(),
{:span_ctx, :undefined | non_neg_integer(), :undefined | non_neg_integer(),
:undefined | integer(), :undefined | {:tracestate, [any()]}},
Keyword.t()
)