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

Off by one error in properties with underscore prefix #17616

Closed
DylanRJohnston opened this issue Aug 4, 2017 · 2 comments
Closed

Off by one error in properties with underscore prefix #17616

DylanRJohnston opened this issue Aug 4, 2017 · 2 comments

Comments

@DylanRJohnston
Copy link

DylanRJohnston commented Aug 4, 2017

interface Foo {
  _brand: 'Foo' // One underscore
}

interface Bar {
  __brand: 'Bar' // Two underscores
}

interface Baz {
  ___brand: 'Baz' // Three underscores
}

type FooBrand1 = Foo['_brand']

type BarBrand2 = Bar['__brand'] // [ts] Property '__brand' does not exist on type 'Bar'.
type BarBrand3 = Bar['___brand']

type BazBrand3 = Baz['___brand'] // [ts] Property '___brand' does not exist on type 'Baz'.
type BazBrand4 = Baz['____brand']
@j-oliveras
Copy link
Contributor

j-oliveras commented Aug 4, 2017

Duplicate of #15334 or maybe related. You can try with typescript@next if is resolved.

@DylanRJohnston
Copy link
Author

Yep, sorry for the dupe ticket, closing.

@microsoft microsoft locked and limited conversation to collaborators Jun 14, 2018
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

2 participants