pasha-mf

Results issues of pasha-mf

Would it be possible to update the "no-use-before-define" rule, so that the following code sample could pass: ? ``` type FooBar = Foo | Bar; type Foo = { foo:...

1. `v1.10.3` 2. Using parser "babel-eslint", rule `"no-use-before-define": 1` and the following test file: ``` type FooBar = Foo | Bar; type Foo = { foo: string }; type Bar...

triage
archived due to age

Test case: ``` var obj; if (obj.x == 1); // error: Property cannot be accessed on possibly undefined value if (obj.x === 1); // no error ?! ``` (running Flow...

bug

Consider the following fragment (http://tryflow.org/#b86b73b2deee7f1be526f6c32c227ab2): ``` var arr: ?Array = []; if (arr) { arr.sort(); // ok [1,2,3].forEach(num => arr.push(num)); // Flow error: arr can be null } ``` Within...

http://tryflow.org/#0059ecd017fd594acb7a5a23e0b15f06 ``` /* @flow */ type Square = { shape: "square"; size: number; }; type Circle = { shape: "circle"; radius: number; }; type Form = Square | Circle; type...

Typing: unions/intersections

Seems like JSX fragments have `any` type instead of `ReactElement` or similar. ``` /* @flow */ var foo: string = Error!; ``` http://tryflow.org/#e6774c44067fa1f57ca16afb2773d9ef

``` /* @flow */ class A {}; type B = {}; function foo(a: ?A, b: ?B) { var s: string = a && "X" || "Y"; // error var t:...

``` var star_rating: 0 | 1 | 2 | 3 | 4 | 5 = 0; // ok var direction: 1 | 0 | -1 = 1; // fails ```...

In the examples below, `foo`, `bar` and `baz` are conceptually same functions, each taking two arguments, and each of those arguments can be either a number or a string. Flow...

Typing: unions/intersections
Closed: doesn't repro

Consider the following test case, consisting of one interface file and one script file. ``` /* interface file */ declare class Lodash { find(collection: Array, iterator: (value: T, i?: number)...