Merge pull request #3546 from sampepose/master
Fixed incorrect printing of array of nullable flow type
This commit is contained in:
commit
cae3f60e76
@ -236,11 +236,7 @@ export function TypeParameter(node: Object) {
|
||||
|
||||
export function TypeParameterInstantiation(node: Object) {
|
||||
this.token("<");
|
||||
this.printList(node.params, node, {
|
||||
iterator: (node: Object) => {
|
||||
this.print(node.typeAnnotation, node);
|
||||
}
|
||||
});
|
||||
this.printList(node.params, node, {});
|
||||
this.token(">");
|
||||
}
|
||||
|
||||
|
||||
@ -100,3 +100,4 @@ export type { foo };
|
||||
export type { foo } from "bar";
|
||||
export interface foo { p: number };
|
||||
export interface foo<T> { p: T };
|
||||
var a: ?Array<?string>;
|
||||
|
||||
@ -104,3 +104,4 @@ export type { foo };
|
||||
export type { foo } from "bar";
|
||||
export interface foo { p: number };
|
||||
export interface foo<T> { p: T };
|
||||
var a: ?Array<?string>;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user