Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

4.9.5, error Decorators are not valid here. #55742

Closed
wangyang875 opened this issue Sep 14, 2023 · 2 comments
Closed

4.9.5, error Decorators are not valid here. #55742

wangyang875 opened this issue Sep 14, 2023 · 2 comments
Labels
Duplicate An existing issue was already created

Comments

@wangyang875
Copy link

πŸ”Ž Search Terms

decorator

πŸ•— Version & Regression Information

  • This is a error
  • This changed between versions 4.9.5 and latter version

⏯ Playground Link

No response

πŸ’» Code

// Your code here
export default () => {
  return class C {
    constructor(@Foo() param: any) { }
  }
}
function Foo(...args: any[]): any {}

πŸ™ Actual behavior

@foo will report error Decorators are not valid here.

πŸ™‚ Expected behavior

no error should be reported

Additional information about the issue

No response

@MartinJohns
Copy link
Contributor

MartinJohns commented Sep 14, 2023

This changed between versions 4.9.5 and latter version

I can not confirm this. There's no difference between 4.8.4, 4.9.5 and 5.0.4.


Duplicate of #7342.

@jakebailey jakebailey added the Duplicate An existing issue was already created label Sep 14, 2023
@typescript-bot
Copy link
Collaborator

This issue has been marked as "Duplicate" and has seen no recent activity. It has been automatically closed for house-keeping purposes.

@typescript-bot typescript-bot closed this as not planned Won't fix, can't repro, duplicate, stale Sep 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Duplicate An existing issue was already created
Projects
None yet
Development

No branches or pull requests

4 participants