36 lines
1021 B
Plaintext
36 lines
1021 B
Plaintext
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
|
|
exports[`A.js - flow-verify 1`] = `
|
|
/* @flow */
|
|
|
|
class AImplementation {}
|
|
export function foo(): AImplementation { return new AImplementation(); }
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
/* @flow */
|
|
|
|
class AImplementation {}
|
|
export function foo(): AImplementation {
|
|
return new AImplementation();
|
|
}
|
|
|
|
`;
|
|
|
|
exports[`index.js - flow-verify 1`] = `
|
|
/* @flow */
|
|
|
|
var A = require('A');
|
|
(A.foo(): boolean); // Error: Either AImplementation ~> boolean or ADefinition ~> boolean
|
|
|
|
var test = require('test');
|
|
(test.foo(): boolean); // Error: Either TestImplementation ~> boolean or TestDefinition ~> boolean
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
/* @flow */
|
|
|
|
var A = require("A");
|
|
(A.foo(): boolean); // Error: Either AImplementation ~> boolean or ADefinition ~> boolean
|
|
|
|
var test = require("test");
|
|
(test.foo(): boolean); // Error: Either TestImplementation ~> boolean or TestDefinition ~> boolean
|
|
|
|
`;
|