You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Summary:
When we solve a type variable we record this fact in the provenance of the type letting us keep track of both where the type variable originally came from and the flow of the type through typing.
This diff moves the place where we modify the reason from `Typing_env` to `Typing_inference_env` since `get_type` is the fundamental function in which we are getting solutions for type variables and moving the logic there eliminates the possibility of subtle provenance bugs
Reviewed By: andrewjkennedy
Differential Revision: D63749779
fbshipit-source-id: a7170046f6e21aea8632abc13f51a85120d3d182
ERROR: File "stack_overflow_array.php", line 15, characters 3-13:
4
4
This is not an object of type `KeyedContainer`, this is a bool or an object of type dict<nothing, nothing> (Typing[4324])
5
-
File "stack_overflow_array.php", line 12, characters 17-21:
5
+
File "stack_overflow_array.php", line 14, characters 14-19:
6
6
Definition is here
7
7
ERROR: File "stack_overflow_array.php", line 15, characters 3-24:
8
8
This is not an object of type `KeyedContainer`, this is a bool (Typing[4370])
9
9
File "stack_overflow_array.php", line 12, characters 17-21:
10
10
Definition is here
11
11
ERROR: File "stack_overflow_array.php", line 16, characters 3-13:
12
12
This is not an object of type `KeyedContainer`, this is a bool or an object of type dict<string, ((_ & nonnull) | dict<nothing, nothing>)> (Typing[4324])
13
-
File "stack_overflow_array.php", line 12, characters 17-21:
13
+
File "stack_overflow_array.php", line 14, characters 14-19:
14
14
Definition is here
15
15
ERROR: File "stack_overflow_array.php", line 16, characters 3-28:
16
16
This is not an object of type `KeyedContainer`, this is a bool (Typing[4370])
17
17
File "stack_overflow_array.php", line 12, characters 17-21:
18
18
Definition is here
19
19
ERROR: File "stack_overflow_array.php", line 17, characters 3-13:
20
20
This is not an object of type `KeyedContainer`, this is a bool or an object of type dict<string, dict<int, ((_ & nonnull) | dict<nothing, nothing>)>> (Typing[4324])
21
-
File "stack_overflow_array.php", line 12, characters 17-21:
21
+
File "stack_overflow_array.php", line 14, characters 14-19:
22
22
Definition is here
23
23
ERROR: File "stack_overflow_array.php", line 17, characters 3-13:
24
24
This is not an object of type `KeyedContainer`, this is a bool or an object of type dict<string, dict<int, dict<nothing, nothing>>> (Typing[4324])
25
-
File "stack_overflow_array.php", line 12, characters 17-21:
25
+
File "stack_overflow_array.php", line 14, characters 14-19:
26
26
Definition is here
27
27
ERROR: File "stack_overflow_array.php", line 17, characters 3-33:
28
28
This is not an object of type `KeyedContainer`, this is a bool (Typing[4370])
29
29
File "stack_overflow_array.php", line 12, characters 17-21:
30
30
Definition is here
31
31
ERROR: File "stack_overflow_array.php", line 20, characters 3-13:
32
32
This is not an object of type `KeyedContainer`, this is a bool or an object of type dict<string, dict<int, dict<(string | _), (_ | (_ & nonnull) | dict<nothing, nothing>)>>> (Typing[4324])
33
-
File "stack_overflow_array.php", line 12, characters 17-21:
33
+
File "stack_overflow_array.php", line 14, characters 14-19:
34
34
Definition is here
35
35
ERROR: File "stack_overflow_array.php", line 20, characters 3-24:
36
36
This is not an object of type `KeyedContainer`, this is a bool (Typing[4370])
37
37
File "stack_overflow_array.php", line 12, characters 17-21:
38
38
Definition is here
39
39
ERROR: File "stack_overflow_array.php", line 21, characters 3-13:
40
40
This is not an object of type `KeyedContainer`, this is a bool or an object of type dict<string, ((nonnull & _) | dict<int, dict<(string | _), (_ | (_ & nonnull) | dict<nothing, nothing>)>>)> (Typing[4324])
41
-
File "stack_overflow_array.php", line 12, characters 17-21:
41
+
File "stack_overflow_array.php", line 14, characters 14-19:
42
42
Definition is here
43
43
ERROR: File "stack_overflow_array.php", line 21, characters 3-28:
44
44
This is not an object of type `KeyedContainer`, this is a bool (Typing[4370])
45
45
File "stack_overflow_array.php", line 12, characters 17-21:
46
46
Definition is here
47
47
ERROR: File "stack_overflow_array.php", line 22, characters 3-13:
48
48
This is not an object of type `KeyedContainer`, this is a bool or an object of type dict<string, dict<int, ((_ & nonnull) | dict<(string | _), (_ | (_ & nonnull) | dict<nothing, nothing>)>)>> (Typing[4324])
49
-
File "stack_overflow_array.php", line 12, characters 17-21:
49
+
File "stack_overflow_array.php", line 14, characters 14-19:
50
50
Definition is here
51
51
ERROR: File "stack_overflow_array.php", line 22, characters 3-13:
52
52
This is not an object of type `KeyedContainer`, this is a bool or an object of type dict<string, dict<int, ((dict<_, _> & nonnull) | dict<(string | _), (_ | (_ & nonnull) | dict<nothing, nothing>)>)>> (Typing[4324])
53
-
File "stack_overflow_array.php", line 12, characters 17-21:
53
+
File "stack_overflow_array.php", line 14, characters 14-19:
54
54
Definition is here
55
55
ERROR: File "stack_overflow_array.php", line 22, characters 3-33:
56
56
This is not an object of type `KeyedContainer`, this is a bool (Typing[4370])
0 commit comments