Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a flag for printing invented type vars in a term
This patch adds a new bool ref flag `print_invented_type_vars`. If it is set to true, it makes a term printer print the type of any subexpression if the type contains an invented type variable. ``` \# `word_join (word 10:int64) (word 20:int64)`;; Warning: inventing type variables val it : term = `word_join (word 10) (word 20)` \# print_invented_type_vars := true;; val it : unit = () \# `word_join (word 10:int64) (word 20:int64)`;; Warning: inventing type variables val it : term = `(word_join:(64)word->(64)word->(?194593)word) (word 10) (word 20)` \# `word_join (word 10:int64) (word 20:int64):int128`;; val it : term = `word_join (word 10) (word 20)` ```
- Loading branch information