josefs / Gradualizer

A Gradual type system for Erlang
MIT License
612 stars 35 forks source link

Solve constraints in type_check_list_op_in/3 #522

Open erszcz opened 1 year ago

erszcz commented 1 year ago

At the location of op_type_too_precise we usually get a type variable. This means that if we solved the available constraints and got a substitution for it, we could tell more about the operation in question.

https://github.com/josefs/Gradualizer/blob/1498d1792155010950c86dc3e92ccb111b706e80/src/typechecker.erl#L3130-L3158