Skip to content

Commit

Permalink
the underlying type of Int is evidently NOT String
Browse files Browse the repository at this point in the history
git-svn-id: http://haxe.googlecode.com/svn/trunk@6686 f16182fa-f095-11de-8f43-4547254af6c6
  • Loading branch information
simon@haxe.org committed May 24, 2013
1 parent de0a051 commit 16e9fce
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions genphp.ml
Expand Up @@ -208,6 +208,7 @@ let rec is_string_type t =
(match !(a.a_status) with
| Statics ({cl_path = ([], "String")}) -> true
| _ -> false)
| TAbstract (a,pl) -> is_string_type (Codegen.Abstract.get_underlying_type a pl)
| _ -> false

let is_string_expr e = is_string_type e.etype
Expand Down
4 changes: 3 additions & 1 deletion typeload.ml
Expand Up @@ -116,7 +116,9 @@ let make_module ctx mpath file tdecls loadp =
} in
decls := (TAbstractDecl a, decl) :: !decls;
match d.d_data with
| [] when Meta.has Meta.CoreType a.a_meta -> acc
| [] when Meta.has Meta.CoreType a.a_meta ->
a.a_this <- t_dynamic;
acc
| fields ->
let rec loop = function
| [] ->
Expand Down

0 comments on commit 16e9fce

Please sign in to comment.