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

14 lines
314 B
JavaScript

/* @flow */
// This will require ./A.js.flow
var A1 = require('./A');
(A1.fun(): string); // Error number ~> string
// This will require ./A.js.flow
var A2 = require('./A.js');
(A2.fun(): string); // Error number ~> string
var CJS = require('./CJS.js');
(CJS: string);
(CJS: number); // Error: string ~> number