fix linting error and add missing tests

This commit is contained in:
Sebastian McKenzie
2015-07-30 23:47:59 +01:00
parent 1d81dd995c
commit b1c3ed6d2d
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");