Parcourir la source

respect position of EField (see #3671)

Simon Krajewski il y a 10 ans
Parent
commit
6af5630181
1 fichiers modifiés avec 1 ajouts et 0 suppressions
  1. 1 0
      typer.ml

+ 1 - 0
typer.ml

@@ -2573,6 +2573,7 @@ and type_access ctx e p mode =
 					Not_found -> loop [] path
 		in
 		let rec loop acc e =
+			let p = pos e in
 			match fst e with
 			| EField (e,s) ->
 				loop ((s,not (is_lower_ident s),p) :: acc) e