|
@@ -372,12 +372,6 @@ let rec type_ident_raise ctx i p mode =
|
|
|
if ctx.curfun = FunStatic then raise Not_found;
|
|
|
let c , t , f = class_field ctx ctx.curclass (List.map snd ctx.curclass.cl_params) i p in
|
|
|
field_access ctx mode f (match c with None -> FAnon f | Some (c,tl) -> FInstance (c,tl,f)) t (get_this ctx p) p
|
|
|
- with Not_found -> try
|
|
|
- (* lookup using on 'this' *)
|
|
|
- if ctx.curfun = FunStatic then raise Not_found;
|
|
|
- (match using_field ctx mode (mk (TConst TThis) ctx.tthis p) i p with
|
|
|
- | AKUsing (et,c,f,_) -> AKUsing (et,c,f,get_this ctx p)
|
|
|
- | _ -> assert false)
|
|
|
with Not_found -> try
|
|
|
(* static variable lookup *)
|
|
|
let f = PMap.find i ctx.curclass.cl_statics in
|