Skip to content

Conversation

Andarist
Copy link
Contributor

@Andarist Andarist commented Oct 5, 2025

This PR fixes this inconsistency:

function Cls() {
  return class T {
     a = () => arguments // 'arguments' cannot be referenced in property initializers or class static initialization blocks.(2815)
     //        ^? (local var) arguments: IArguments

     static {
      arguments // 'arguments' cannot be referenced in property initializers or class static initialization blocks.(2815)
      // ^? (local var) arguments: any
     }
  }
}

It feels like #48172 forgot to update this one isInPropertyInitializerOrClassStaticBlock call.

@github-project-automation github-project-automation bot moved this to Not started in PR Backlog Oct 5, 2025
@typescript-bot typescript-bot added the For Uncommitted Bug PR for untriaged, rejected, closed or missing bug label Oct 5, 2025
@typescript-bot
Copy link
Collaborator

This PR doesn't have any linked issues. Please open an issue that references this PR. From there we can discuss and prioritise.

Copy link
Member

@jakebailey jakebailey left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, this is an oops.

@github-project-automation github-project-automation bot moved this from Not started to Needs merge in PR Backlog Oct 5, 2025
@jakebailey jakebailey merged commit 6ba7d35 into microsoft:main Oct 5, 2025
33 checks passed
@github-project-automation github-project-automation bot moved this from Needs merge to Done in PR Backlog Oct 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
For Uncommitted Bug PR for untriaged, rejected, closed or missing bug
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants