Add readonly to decl and function types
[hiphop-php.git] / hphp / hack / test / decl / unnamed_variadic_method_parameter.php.exp
blob92322c95d200a736e8b61a4b4626a32ea1614168
1 [("\\C",
2 (Shallow_decl_defs.Class
3 { Shallow_decl_defs.sc_mode = Mstrict; sc_final = false;
4 sc_is_xhp = false; sc_has_xhp_keyword = false; sc_kind = Cnormal;
5 sc_name = ([3:7-8], "\\C"); sc_tparams = [];
6 sc_where_constraints = []; sc_extends = []; sc_uses = [];
7 sc_xhp_attr_uses = []; sc_req_extends = []; sc_req_implements = [];
8 sc_implements = []; sc_implements_dynamic = false; sc_consts = [];
9 sc_typeconsts = []; sc_props = []; sc_sprops = [];
10 sc_constructor = None; sc_static_methods = [];
11 sc_methods =
12 [{ Shallow_decl_defs.sm_name = ([4:19-20], "f"); sm_reactivity = None;
13 sm_type =
14 (Rwitness (root|unnamed_variadic_method_parameter.php line 4, characters 19-19),
15 (Tfun
16 { ft_arity =
17 (Fvariadic (
18 { fp_pos = [4:31-34]; fp_name = None;
19 fp_type =
20 { et_enforced = false;
21 et_type =
22 (Rwitness (root|unnamed_variadic_method_parameter.php line 4, characters 31-33),
23 Tany)
25 fp_rx_annotation = None;
26 fp_flags =
27 (make_fp_flags ~mutability:None ~accept_disposable:false
28 ~has_default:false ~mode:Typing_defs_core.FPnormal
29 ~ifc_external:false ~ifc_can_call:false ~is_atom:false
30 ~readonly:false);
32 ));
33 ft_tparams = []; ft_where_constraints = [];
34 ft_params =
35 [{ fp_pos = [4:25-29]; fp_name = (Some "$foo");
36 fp_type =
37 { et_enforced = false;
38 et_type =
39 (Rhint (root|unnamed_variadic_method_parameter.php line 4, characters 21-23),
40 (Tprim Tint))
42 fp_rx_annotation = None;
43 fp_flags =
44 (make_fp_flags ~mutability:None ~accept_disposable:false
45 ~has_default:false ~mode:Typing_defs_core.FPnormal
46 ~ifc_external:false ~ifc_can_call:false ~is_atom:false
47 ~readonly:false);
50 ft_implicit_params = { capability = (CapDefaults [4:19-20]) };
51 ft_ret =
52 { et_enforced = false;
53 et_type =
54 (Rhint (root|unnamed_variadic_method_parameter.php line 4, characters 37-40),
55 (Tprim Tvoid))
57 ft_flags =
58 (make_ft_flags FSync None ~return_disposable:false
59 ~returns_mutable:false ~returns_void_to_rx:false
60 ~returns_readonly:false ~readonly_this:false);
61 ft_reactive = Nonreactive; ft_ifc_decl = FDPolicied {PUBLIC}
62 }));
63 sm_visibility = Public; sm_deprecated = None; sm_flags = (empty) }
65 sc_user_attributes = []; sc_enum_type = None }))
68 They matched!