Skip to content

Commit

Permalink
Fixed a bug that results in a crash under certain circumstances when …
Browse files Browse the repository at this point in the history
…`Self` is errantly specialized. This addresses #9552.
  • Loading branch information
erictraut committed Dec 6, 2024
1 parent 2f28cd3 commit 943a954
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/pyright-internal/src/analyzer/typeEvaluator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15617,7 +15617,7 @@ export function createTypeEvaluator(
flags: EvalFlags
) {
// Self doesn't support any type arguments.
if (typeArgs) {
if (typeArgs && typeArgs.length > 0) {
addDiagnostic(
DiagnosticRule.reportInvalidTypeArguments,
LocMessage.typeArgsExpectingNone().format({
Expand Down

0 comments on commit 943a954

Please sign in to comment.