diff --git a/index.js b/index.js index 82eb2ac5..b1ac5a2c 100644 --- a/index.js +++ b/index.js @@ -460,7 +460,7 @@ exports.parseNoPatch = function (code, options) { existential: true, flippedImports: true, noEnforcedSubscriptIndentation: true, - enhancedComprehension: true, + safeCall: true, placeholderArgs: true, pipeCall: true, __linter: true diff --git a/test/non-regression.js b/test/non-regression.js index cba49cc9..1682a3a7 100644 --- a/test/non-regression.js +++ b/test/non-regression.js @@ -759,7 +759,8 @@ y = -> [_0, ..._] unpad(` import type Promise from 'bluebird'; type Operation = () => Promise; - x: Operation; + let x = null; + (x: Operation); `), { "no-unused-vars": 1, "no-undef": 1 }, []