Files
test-repo/tests/flow/namespace/namespace.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

18 lines
349 B
JavaScript

/*@flow*/// import type { T } from '...'
type T = (x:number) => void;
var f: T = function(x:string): void { }
type Map<X,Y> = (x:X) => Y;
function bar<U,V>(x:U, f:Map<U,V>): V {
return f(x);
}
var y:number = bar(0, x => "");
type Seq = number | Array<Seq>;
var s1:Seq = [0,[0]];
var s2:Seq = [[""]];
module.exports = { foo: ("": number) };