Open tsloughter opened 1 year ago
Here is a simple testcase that produces the same error:
f(_V0, _V1) ->
<<_V1:(_V2 = ok)/little-unit:119>>,
_V2.
produces
escript: exception error: no case clause matching #{'_V0' => {type,0,any,[]},
'_V1' => {type,0,any,[]}}
in function typechecker:do_type_check_expr/2 (src/typechecker.erl, line 1722)
in call from typechecker:type_check_expr/2 (src/typechecker.erl, line 1714)
in call from typechecker:do_type_check_expr_in/3 (src/typechecker.erl, line 2523)
in call from typechecker:type_check_expr_in/3 (src/typechecker.erl, line 2514)
in call from typechecker:type_check_block_in/3 (src/typechecker.erl, line 3565)
in call from typechecker:check_clause/5 (src/typechecker.erl, line 4027)
in call from typechecker:check_reachable_clauses/7 (src/typechecker.erl, line 3937)
in call from typechecker:check_clauses/5 (src/typechecker.erl, line 3907)
I just updated gradualizer in https://github.com/open-telemetry/opentelemetry-erlang and tried running it. It eventually crashes with this error:
And actually get a different error when I run it without
--use_beams
: