Permalink
Browse files

Emit types for xhp correctly

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 9c40b6368a2691ed6cfb3bfa48a85da84d98b514
Showing with 1 addition and 1 deletion.
  1. +1 −1 hphp/hack/src/hhbc/emit_type_constant.ml
@@ -46,7 +46,7 @@ let get_kind_num ~tparams p =
| "hh\\keyset" -> 21
| "hh\\vec_or_dict" -> 22
| "typeaccess" -> 102
| "xhp_xhp" -> 103
| _ when String.length p > 4 && String.sub p 0 4 = "xhp_" -> 103
| "unresolved"
| _ -> 101

0 comments on commit 9c40b63

Please sign in to comment.