class default export makes private fields "unused"?

I am not sure if this is a bug, but it irritates me a lot. When I make this class a default export I get the below warning (unused field “bar”).

Can anyone reproduce this? Why is this?

 

export default class Foo {
  private bar = "";
  
  init() {
    this.bar = "baz";
    return this.bar;
  }
}

 

0
2 comments

This is the known issue, please vote for WEB-68793 to get notified of any progress with this bug.

1

Thank you very much Elena!

0

Please sign in to leave a comment.