Merge pull request #3546 from sampepose/master

Fixed incorrect printing of array of nullable flow type
This commit is contained in:
Logan Smyth
2016-06-22 21:31:10 -07:00
committed by GitHub
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>;