Skip to content

Failure in 'getNavigationBarItems' when mixing computed/non-computed property declarations #7301

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

Closed
DanielRosenwasser opened this issue Feb 29, 2016 · 0 comments
Labels
Bug A bug in TypeScript Fixed A PR has been merged for this issue

Comments

@DanielRosenwasser
Copy link
Member

This code

class C {
    foo;
    ["bar"]: string;
}

causes the following error:

getNavigationBarItems('C:\Users\drosen\AppData\Local\Temp\~vs6F46.ts')

StackTrace:

TypeError: Unable to get property 'localeCompare' of undefined or null reference
   at Anonymous function (:42182:25)
   at sortNodes (:42180:17)
   at createClassItem (:42442:25)
   at createTopLevelItem (:42381:25)
   at getItemsWorker (:42243:21)
   at getNavigationBarItems (:42074:13)
   at getNavigationBarItems (:52212:13)
   at Anonymous function (:54667:100)
   at simpleForwardCall (:54385:9)
   at forwardJSONCall (:54401:13)
   at forwardJSONCall (:54447:13)
   at getNavigationBarItems (:54667:13)
@DanielRosenwasser DanielRosenwasser added the Bug A bug in TypeScript label Feb 29, 2016
@mhegazy mhegazy self-assigned this Apr 26, 2016
@mhegazy mhegazy added this to the TypeScript 2.0 milestone Apr 26, 2016
@mhegazy mhegazy assigned ghost and unassigned mhegazy May 12, 2016
ghost pushed a commit that referenced this issue May 16, 2016
@ghost ghost mentioned this issue May 16, 2016
ghost pushed a commit that referenced this issue May 17, 2016
ghost pushed a commit that referenced this issue May 17, 2016
@ghost ghost closed this as completed in #8622 May 17, 2016
ghost pushed a commit that referenced this issue May 17, 2016
@mhegazy mhegazy added the Fixed A PR has been merged for this issue label May 17, 2016
@microsoft microsoft locked and limited conversation to collaborators Jun 19, 2018
This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Bug A bug in TypeScript Fixed A PR has been merged for this issue
Projects
None yet
Development

No branches or pull requests

2 participants