Backout D24132229
[hiphop-php.git] / hphp / hack / test / tast / reified_generic_shadowing2.php.exp
blobe3c9c2597b469828d6abb10851728ea6e3c32d2d
1 Errors:
2 [6:21-23] `Tc` is a type parameter. Type parameters cannot take type arguments (e.g. `Tc<int>` isn't allowed)
3 [(Class
4 { c_span = [4:1-7:2]; c_annotation = (); c_mode = Mstrict;
5 c_final = false; c_is_xhp = false; c_has_xhp_keyword = false;
6 c_kind = Cnormal; c_name = ([4:7-9], "\\Tc");
7 c_tparams =
8 [{ tp_variance = Invariant; tp_name = ([4:10-12], "Tc");
9 tp_parameters = []; tp_constraints = []; tp_reified = Erased;
10 tp_user_attributes = [] }
12 c_extends = []; c_uses = []; c_use_as_alias = [];
13 c_insteadof_alias = []; c_xhp_attr_uses = []; c_xhp_category = None;
14 c_reqs = []; c_implements = []; c_implements_dynamic = false;
15 c_where_constraints = []; c_consts = []; c_typeconsts = [];
16 c_vars = [];
17 c_methods =
18 [{ m_span = [6:3-41]; m_annotation = (); m_final = false;
19 m_abstract = false; m_static = false; m_visibility = Public;
20 m_name = ([6:19-20], "f"); m_tparams = []; m_where_constraints = [];
21 m_variadic = FVnonVariadic;
22 m_params =
23 [{ param_annotation = ([6:29-31], Tc);
24 param_type_hint = ((Tc), (Some ([6:21-28], (Habstr ("Tc", [])))));
25 param_is_variadic = false; param_pos = [6:29-31];
26 param_name = "$x"; param_expr = None; param_callconv = None;
27 param_user_attributes = []; param_visibility = None }
29 m_cap = ((nothing), None); m_unsafe_cap = ((mixed), None);
30 m_body = { fb_ast = [([Pos.none], Noop)]; fb_annotation = () };
31 m_fun_kind = FSync; m_user_attributes = [];
32 m_ret = ((void), (Some ([6:34-38], (Hprim Tvoid))));
33 m_external = false; m_doc_comment = None }
35 c_attributes = []; c_xhp_children = []; c_xhp_attrs = [];
36 c_namespace =
37 { Namespace_env.ns_ns_uses = <opaque>; ns_class_uses = <opaque>;
38 ns_record_def_uses = <opaque>; ns_fun_uses = <opaque>;
39 ns_const_uses = <opaque>; ns_name = None; ns_auto_ns_map = [];
40 ns_is_codegen = false; ns_disable_xhp_element_mangling = false };
41 c_user_attributes = []; c_file_attributes = []; c_enum = None;
42 c_doc_comment = None; c_emit_id = None });
43 (Class
44 { c_span = [9:1-12:2]; c_annotation = (); c_mode = Mstrict;
45 c_final = false; c_is_xhp = false; c_has_xhp_keyword = false;
46 c_kind = Cnormal; c_name = ([9:7-15], "\\Tc_other"); c_tparams = [];
47 c_extends = []; c_uses = []; c_use_as_alias = [];
48 c_insteadof_alias = []; c_xhp_attr_uses = []; c_xhp_category = None;
49 c_reqs = []; c_implements = []; c_implements_dynamic = false;
50 c_where_constraints = []; c_consts = []; c_typeconsts = [];
51 c_vars = [];
52 c_methods =
53 [{ m_span = [11:3-41]; m_annotation = (); m_final = false;
54 m_abstract = false; m_static = false; m_visibility = Public;
55 m_name = ([11:19-20], "f"); m_tparams = [];
56 m_where_constraints = []; m_variadic = FVnonVariadic;
57 m_params =
58 [{ param_annotation = ([11:29-31], Tc<int>);
59 param_type_hint =
60 ((Tc<int>),
61 (Some ([11:21-28],
62 (Happly (([11:21-23], "\\Tc"),
63 [([11:24-27], (Hprim Tint))])))));
64 param_is_variadic = false; param_pos = [11:29-31];
65 param_name = "$x"; param_expr = None; param_callconv = None;
66 param_user_attributes = []; param_visibility = None }
68 m_cap = ((nothing), None); m_unsafe_cap = ((mixed), None);
69 m_body = { fb_ast = [([Pos.none], Noop)]; fb_annotation = () };
70 m_fun_kind = FSync; m_user_attributes = [];
71 m_ret = ((void), (Some ([11:34-38], (Hprim Tvoid))));
72 m_external = false; m_doc_comment = None }
74 c_attributes = []; c_xhp_children = []; c_xhp_attrs = [];
75 c_namespace =
76 { Namespace_env.ns_ns_uses = <opaque>; ns_class_uses = <opaque>;
77 ns_record_def_uses = <opaque>; ns_fun_uses = <opaque>;
78 ns_const_uses = <opaque>; ns_name = None; ns_auto_ns_map = [];
79 ns_is_codegen = false; ns_disable_xhp_element_mangling = false };
80 c_user_attributes = []; c_file_attributes = []; c_enum = None;
81 c_doc_comment = None; c_emit_id = None })