TypeScript icon indicating copy to clipboard operation
TypeScript copied to clipboard

Variable in "extends" clause ignored by services

Open jeffreymorlan opened this issue 11 years ago • 2 comments

In the following code:

var base = class {};
class C extends base {}

services does not recognize that the base identifier in the second line refers to the variable declared in the first. Rename, find occurrences, etc do not work on it.

The same problem also occurs with JSX spread attributes in .tsx code:

var props = {};
var div = <div {...props}/>;

jeffreymorlan avatar Sep 29 '15 23:09 jeffreymorlan

I think the latter is a symptom of #4688. @RyanCavanaugh can you confirm?

DanielRosenwasser avatar Sep 30 '15 20:09 DanielRosenwasser

That's correct.

RyanCavanaugh avatar Sep 30 '15 20:09 RyanCavanaugh