Skip to content

Commit

Permalink
Revert "(Flash9) use real field name to check for overrides (closes H…
Browse files Browse the repository at this point in the history
…axeFoundation#2785)"

This reverts commit 00ba793.
  • Loading branch information
Simn committed Mar 29, 2014
1 parent 996724f commit a04aec3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 37 deletions.
6 changes: 3 additions & 3 deletions genswf9.ml
Original file line number Diff line number Diff line change
Expand Up @@ -2016,7 +2016,7 @@ let generate_field_kind ctx f c stat =
Some (HFMethod {
hlm_type = m;
hlm_final = stat || (Meta.has Meta.Final f.cf_meta);
hlm_override = not stat && loop c f.cf_name; (* use real field name to check for overrides (issue #2785) *)
hlm_override = not stat && loop c name;
hlm_kind = kind;
})
);
Expand Down Expand Up @@ -2044,7 +2044,7 @@ let generate_field_kind ctx f c stat =
hlv_value = HVNone;
hlv_const = false;
})

let check_constructor ctx c f =
(*
check that we don't assign a super Float var before we call super() : will result in NaN
Expand All @@ -2061,7 +2061,7 @@ let check_constructor ctx c f =
loop f.tf_expr
with Exit ->
()

let generate_class ctx c =
let name = type_path ctx c.cl_path in
ctx.cur_class <- c;
Expand Down
34 changes: 0 additions & 34 deletions tests/unit/issues/Issue2785.hx

This file was deleted.

0 comments on commit a04aec3

Please sign in to comment.