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

problem with override and static fields in ts4.3 beta #43916

Closed
jogibear9988 opened this issue May 1, 2021 · 4 comments
Closed

problem with override and static fields in ts4.3 beta #43916

jogibear9988 opened this issue May 1, 2021 · 4 comments

Comments

@jogibear9988
Copy link

Bug Report

If I do not add override on static, I get an error "This member must have an override...."

If I add it, I get the error "'static'modifier can not be used with override"

🔎 Search Terms

override static

🕗 Version & Regression Information

This is a new feature, so before override was not available

⏯ Playground Link

I've none

💻 Code

static readonly style = css`
    :host {
  .....

🙁 Actual behavior

see:

image

image

🙂 Expected behavior

should work after adding override

@jogibear9988
Copy link
Author

image

@whzx5byb
Copy link

whzx5byb commented May 1, 2021

It is fixed in the nightly version.

@Kingwl
Copy link
Contributor

Kingwl commented May 1, 2021

Fixed via #43569. Please try the typescript@next.

@jogibear9988
Copy link
Author

fixed
thx

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants