Skip to content

Commit

Permalink
Emit types for xhp correctly
Browse files Browse the repository at this point in the history
Summary: XHP classes should have type 103, not 101

Reviewed By: vladima

Differential Revision: D7131722

fbshipit-source-id: 373728dfa4127ba23a595d074877434441f66530
  • Loading branch information
jamesjwu authored and hhvm-bot committed Mar 11, 2018
1 parent 3793ec7 commit 9c40b63
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hphp/hack/src/hhbc/emit_type_constant.ml
Expand Up @@ -46,7 +46,7 @@ let get_kind_num ~tparams p =
| "hh\\keyset" -> 21 | "hh\\keyset" -> 21
| "hh\\vec_or_dict" -> 22 | "hh\\vec_or_dict" -> 22
| "typeaccess" -> 102 | "typeaccess" -> 102
| "xhp_xhp" -> 103 | _ when String.length p > 4 && String.sub p 0 4 = "xhp_" -> 103
| "unresolved" | "unresolved"
| _ -> 101 | _ -> 101


Expand Down

0 comments on commit 9c40b63

Please sign in to comment.