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.
1 parent 5777e7d commit 6535809Copy full SHA for 6535809
src/compiler/checker.ts
@@ -11496,7 +11496,7 @@ namespace ts {
11496
const parent = getTypePredicateParent(node);
11497
if (!parent) {
11498
// The parent must not be valid.
11499
- error(node.parent, Diagnostics.A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods);
+ error(node, Diagnostics.A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods);
11500
return;
11501
}
11502
0 commit comments