Consider the following two modules:
/**
* @providesModule ModuleA
* @flow
*/
var ModuleB = require('./ModuleB');
export type A = number;
/**
* @providesModule ModuleB
* @flow
*/
import type { A } from './ModuleA';
module.exports = function () {
var a: A | null = 's';
}
Flow is expected to report an error but it doesn't.It only does when I change the type annotation on a from A | null to A or when type A is declared in ModuleB.