forked from facebook/flow
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbinary.exp
More file actions
104 lines (54 loc) · 3.4 KB
/
binary.exp
File metadata and controls
104 lines (54 loc) · 3.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
Error ------------------------------------------------------------------------------------------------------ in.js:27:15
Cannot use `in` because on the right-hand side, number [1] must be an object or array.
27| ('foo' in 123); // error
^^^ [1]
Error ------------------------------------------------------------------------------------------------------ in.js:28:15
Cannot use `in` because on the right-hand side, string [1] must be an object or array.
28| ('foo' in 'bar'); // error
^^^^^ [1]
Error ------------------------------------------------------------------------------------------------------ in.js:29:15
Cannot use `in` because on the right-hand side, undefined [1] must be an object or array.
29| ('foo' in void 0); // error
^^^^^^ [1]
Error ------------------------------------------------------------------------------------------------------ in.js:30:15
Cannot use `in` because on the right-hand side, null [1] must be an object or array.
30| ('foo' in null); // error
^^^^ [1]
Error ------------------------------------------------------------------------------------------------------- in.js:35:6
Cannot use `in` because on the left-hand side, null [1] must be a string or number.
35| (null in {}); // error
^^^^ [1]
Error ------------------------------------------------------------------------------------------------------- in.js:36:6
Cannot use `in` because on the left-hand side, undefined [1] must be a string or number.
36| (void 0 in {}); // error
^^^^^^ [1]
Error ------------------------------------------------------------------------------------------------------- in.js:37:6
Cannot use `in` because on the left-hand side, object literal [1] must be a string or number.
37| ({} in {}); // error
^^ [1]
Error ------------------------------------------------------------------------------------------------------- in.js:38:6
Cannot use `in` because on the left-hand side, empty array literal [1] must be a string or number.
38| ([] in {}); // error
^^ [1]
Error ------------------------------------------------------------------------------------------------------- in.js:39:6
Cannot use `in` because on the left-hand side, boolean [1] must be a string or number.
39| (false in []); // error
^^^^^ [1]
Error ------------------------------------------------------------------------------------------------------ in.js:44:18
Cannot use `in` because on the right-hand side, number [1] must be an object or array.
44| if ('foo' in 123) {} // error
^^^ [1]
Error ------------------------------------------------------------------------------------------------------- in.js:45:9
Cannot use `in` because on the left-hand side, boolean literal `false` [1] must be a string or number.
45| if (!'foo' in {}) {} // error, !'foo' is a boolean
^^^^^^ [1]
Error ------------------------------------------------------------------------------------------------------ in.js:52:15
Cannot use `in` because on the right-hand side, mixed [1] must be an object or array.
in.js:52:15
52| ('foo' in y); // error
^
References:
in.js:50:26
50| function(x: Object, y: mixed) {
^^^^^ [1]
Found 12 errors