2
0
Эх сурвалжийг харах

fix position of TVar in unification post processor (closes #3668)

Simon Krajewski 10 жил өмнө
parent
commit
2d2fefab77
1 өөрчлөгдсөн 2 нэмэгдсэн , 2 устгасан
  1. 2 2
      codegen.ml

+ 2 - 2
codegen.ml

@@ -1656,8 +1656,8 @@ module UnificationCallback = struct
 			| TBinop((OpAssign | OpAssignOp _ as op),e1,e2) ->
 				let e2 = f e2 e1.etype in
 				{e with eexpr = TBinop(op,e1,e2)}
-			| TVar(v,Some e) ->
-				let eo = Some (f e v.v_type) in
+			| TVar(v,Some ev) ->
+				let eo = Some (f ev v.v_type) in
 				{ e with eexpr = TVar(v,eo) }
 			| TCall(e1,el) ->
 				let el = check_call f el e1.etype in