Fix ObjectTypeCallProperty static (#298)
* add failing test for ObjectTypeCallProperty static (#297) * fix ObjectTypeCallProperty static
This commit is contained in:
committed by
Daniel Tschinder
parent
5977479f57
commit
28c467e8fe
@@ -375,7 +375,7 @@ pp.flowParseObjectType = function (allowStatic, allowExact) {
|
||||
if (variance) {
|
||||
this.unexpected(variancePos);
|
||||
}
|
||||
nodeStart.callProperties.push(this.flowParseObjectTypeCallProperty(node, allowStatic));
|
||||
nodeStart.callProperties.push(this.flowParseObjectTypeCallProperty(node, isStatic));
|
||||
} else {
|
||||
propertyKey = this.flowParseObjectPropertyKey();
|
||||
if (this.isRelational("<") || this.match(tt.parenL)) {
|
||||
|
||||
Reference in New Issue
Block a user