Skip to content

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

Closed
@jogibear9988

Description

@jogibear9988

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions