Fixed incorrect printing of array of nullable flow type

This commit is contained in:
Sam Pepose 2016-06-22 20:33:43 -07:00
parent 3d77ad9381
commit 199a612131
3 changed files with 3 additions and 5 deletions

View File

@ -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(">");
}

View File

@ -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>

View File

@ -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>;