Fixed findAllRefs/getOccs bug where private properties declared in the constructor were only local to the constructor.

Fixes #975.
This commit is contained in:
Daniel Rosenwasser
2014-10-27 18:08:49 -07:00
parent 20392de6ef
commit e3d82b7db3
3 changed files with 20 additions and 2 deletions

View File

@@ -0,0 +1,18 @@
/// <reference path="fourslash.ts" />
////class ABCD {
//// constructor(private x: number, public y: number, private [|z|]: number) {
//// }
////
//// func() {
//// return this.[|z|];
//// }
////}
test.ranges().forEach(r => {
goTo.position(r.start);
test.ranges().forEach(range => {
verify.referencesAtPositionContains(range);
});
});