typer: bugfix: use "String.equal", not "="

This commit is contained in:
Suzanne Dupéron 2019-12-06 18:31:00 +01:00 committed by Suzanne Dupéron
parent 77fdb739b6
commit 30dac09494

View File

@ -274,7 +274,7 @@ module Substitution = struct
let self tv = type_value ~tv ~substs in
let (v, expr) = substs in
match tv with
| P_variable v' when v' = v -> expr
| P_variable v' when String.equal v' v -> expr
| P_variable _ -> tv
| P_constant (x , lst) -> (
let lst' = List.map self lst in