We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
npm run bootstrap:debug
1 parent a98ec09 commit 89290aeCopy full SHA for 89290ae
1 file changed
src/parser.ts
@@ -959,7 +959,8 @@ export class Parser extends DiagnosticEmitter {
959
960
/** Records a function type that has parameter or this-parameter decorators for post-transform validation. */
961
private noteFunctionTypeParameterDecorators(signature: FunctionTypeNode): void {
962
- let hasDecorators = signature.explicitThisDecorators != null && signature.explicitThisDecorators.length > 0;
+ let thisDecorators = signature.explicitThisDecorators;
963
+ let hasDecorators = thisDecorators != null && thisDecorators.length > 0;
964
if (!hasDecorators) {
965
let params = signature.parameters;
966
for (let i = 0, k = params.length; i < k; ++i) {
0 commit comments