mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-17 21:06:50 -05:00
Allow extending any, with noImplicitAny errors (#23153)
Allow extending any, without noImplicitAny errors
This commit is contained in:
committed by
GitHub
parent
7520f9578b
commit
154ac342cb
@@ -17938,6 +17938,9 @@ namespace ts {
|
||||
function resolveCallExpression(node: CallExpression, candidatesOutArray: Signature[]): Signature {
|
||||
if (node.expression.kind === SyntaxKind.SuperKeyword) {
|
||||
const superType = checkSuperExpression(node.expression);
|
||||
if (isTypeAny(superType)) {
|
||||
return anySignature;
|
||||
}
|
||||
if (superType !== unknownType) {
|
||||
// In super call, the candidate signatures are the matching arity signatures of the base constructor function instantiated
|
||||
// with the type arguments specified in the extends clause.
|
||||
|
||||
Reference in New Issue
Block a user