fix linting error and add missing tests

This commit is contained in:
Sebastian McKenzie
2015-07-30 23:47:59 +01:00
parent 76111143bb
commit f97e201b56
3 changed files with 229 additions and 1 deletions

View File

@@ -494,7 +494,7 @@ pp.flowParsePrimaryType = function () {
return this.finishNode(node, "StringLiteralTypeAnnotation");
case tt._true: case tt._false:
node.value = this.match(tt._true)
node.value = this.match(tt._true);
this.next();
return this.finishNode(node, "BooleanLiteralTypeAnnotation");