@@ -34,9 +34,11 @@ defmodule Module.Types.Of do
3434 This purposedly deletes all traces of the variable,
3535 as it is often invoked when the cause for error is elsewhere.
3636 """
37- def error_var ( { _var_name , meta , _var_context } , context ) do
38- version = Keyword . fetch! ( meta , :version )
37+ def error_var ( { _ , meta , _ } , context ) do
38+ error_var ( Keyword . fetch! ( meta , :version ) , context )
39+ end
3940
41+ def error_var ( version , context ) do
4042 update_in ( context . vars [ version ] , fn
4143 % { errored: true } = data -> data
4244 data -> Map . put ( % { data | type: error_type ( ) , off_traces: [ ] } , :errored , true )
@@ -496,10 +498,10 @@ defmodule Module.Types.Of do
496498 end
497499
498500 # If the segment is a literal, the compiler has already checked its validity,
499- # so we just skip it .
500- defp binary_segment ( { :"::" , _meta , [ left , _right ] } , _kind , _args , _stack , context )
501+ # so we just check the size .
502+ defp binary_segment ( { :"::" , _meta , [ left , right ] } , kind , _args , stack , context )
501503 when is_binary ( left ) or is_number ( left ) do
502- context
504+ specifier_size ( kind , right , stack , context )
503505 end
504506
505507 defp binary_segment ( { :"::" , meta , [ left , right ] } , kind , args , stack , context ) do
0 commit comments