prettier/tests/flow/annot2/__snapshots__/jsfmt.spec.js.snap

67 lines
869 B
Plaintext
Raw Normal View History

exports[`test A.js 1`] = `
"/**
* @providesModule A
* @flow
*/
2016-12-30 19:56:42 +03:00
import type T from \"T\";
export default class {
p: T;
constructor() {
this.p = 0;
}
}
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/**
* @providesModule A
* @flow
*/
2016-12-30 19:56:42 +03:00
import type T from \"T\";
export default class {
p: T;
constructor() {
this.p = 0;
}
2017-01-11 18:16:38 +03:00
}
"
`;
exports[`test B.js 1`] = `
"/**
* @flow
*/
2016-12-30 19:56:42 +03:00
import A from \"A\"
class B extends A {
p: string; // OK, string ~> any
}
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/**
* @flow
*/
2016-12-30 19:56:42 +03:00
import A from \"A\";
class B extends A {
p: string; // OK, string ~> any
2017-01-11 18:16:38 +03:00
}
"
`;
exports[`test T.js 1`] = `
"/**
* @providesModule T
*/
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/**
* @providesModule T
*/
"
`;