Browse Source

typing fix (fixed issue #1742)

Simon Krajewski 12 years ago
parent
commit
1040239e00
1 changed files with 1 additions and 1 deletions
  1. 1 1
      codegen.ml

+ 1 - 1
codegen.ml

@@ -1470,7 +1470,7 @@ module Abstract = struct
 								let fname = field_name fa in
 								let fname = field_name fa in
 								let el = List.map (loop ctx) el in
 								let el = List.map (loop ctx) el in
 								begin try
 								begin try
-									let ef = mk (TField({e2 with etype = m},quick_field m fname)) e2.etype e2.epos in
+									let ef = mk (TField({e2 with etype = m},quick_field m fname)) e1.etype e2.epos in
 									make_call ctx ef el e.etype e.epos
 									make_call ctx ef el e.etype e.epos
 								with Not_found ->
 								with Not_found ->
 									(* quick_field raises Not_found if m is an abstract, we have to replicate the 'using' call here *)
 									(* quick_field raises Not_found if m is an abstract, we have to replicate the 'using' call here *)