Skip to content

Commit

Permalink
[analyzer] properly deal with super calls
Browse files Browse the repository at this point in the history
  • Loading branch information
Simn committed Dec 21, 2014
1 parent 740b2ed commit 808998d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions analyzer.ml
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ module Simplifier = struct
e
| TCall(e1,el) ->
let rec is_valid_call_target e = match e.eexpr with
| TFunction _ | TField _ | TLocal _ ->
| TFunction _ | TField _ | TLocal _ | TConst (TSuper) ->
true
| TParenthesis e1 | TCast(e1,None) | TMeta(_,e1) ->
is_valid_call_target e1
Expand All @@ -250,7 +250,7 @@ module Simplifier = struct
| TConst TSuper,_ when com.platform = Java || com.platform = Cs ->
(* they hate you if you mess up the super call *)
el
| _,TFun _ ->
| _,TFun _ | TConst TSuper,_ ->
Codegen.UnificationCallback.check_call check el e1.etype
| _ ->
(* too dangerous *)
Expand Down

0 comments on commit 808998d

Please sign in to comment.