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

Unhighlighted member as function argument in ternary else #721

Closed
matt-tingen opened this issue Feb 14, 2019 · 0 comments
Closed

Unhighlighted member as function argument in ternary else #721

matt-tingen opened this issue Feb 14, 2019 · 0 comments

Comments

@matt-tingen
Copy link

TS and JS Grammar Extension version: 0.0.49 / latest

Code

class Foo {
  prop = () =>
    this.condition
      ? fn(this.value)
      : fn(this.value)
}

screen shot 2019-02-14 at 10 50 55 am

All variations I've tried do work, including putting the whole prop method on one line, having just : fn(value), : fn(this['value']), etc.

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

1 participant