Files
test-repo/tests/flow/predicates-parsing/pass.js
T
Christopher Chedeau 3375cfe605 Move tests around (#454)
* new_tests

* move_all_clobbered_tests

* remove all the tests that no longer exist

* re-run flow tests

* Move all the flow tests to tests/flow and prettier to tests/

* Move prettier tests to their own folders

* Add jsfmt files

* run prettier snapshot tests
2017-01-24 14:35:37 -08:00

28 lines
549 B
JavaScript

// @flow
declare function f1(x: mixed): boolean;
declare function f3(x: mixed): boolean %checks (x !== null);
declare function f4(x: mixed): boolean %checks (x !== null);
function f7(x: mixed): %checks { return x !== null }
var a0 = (x: mixed) => x !== null;
var a1 = (x: mixed): %checks => x !== null;
(x): %checks => x !== null;
const insert_a_really_big_predicated_arrow_function_name_here = (x)
: %checks => x !== null;
declare var x;
(x)
checks => 123;
type checks = any;
declare function f(x: mixed): checks
(typeof x === null);