Skip to content
This repository has been archived by the owner on Feb 26, 2021. It is now read-only.

private fields don't work #49

Open
iliabylich opened this issue Sep 27, 2019 · 0 comments
Open

private fields don't work #49

iliabylich opened this issue Sep 27, 2019 · 0 comments

Comments

@iliabylich
Copy link

class Test {
  public a: number = 1
  private b: number = 2
}

const t = new Test()
oc(t).a
oc(t).b(0)

gives:

Property 'b' does not exist on type 'TSOCType<Test>'.

8 oc(t).b(0)
          ~
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant