prettier/tests/flow/strict/fun.js

14 lines
198 B
JavaScript

/**
* @flow
*/
// progressively annotate:
//function f(x) { return x; }
function f(x:number) { return x; }
//function f(x:number):string { return x; }
var x:string = f(0);
module.exports = f;