TypeScript/tests/baselines/reference/privateNamesUnique-4.js
Eli Barzilay 68a9d4592f Avoid testing isClassDeclaration if there's no valueDeclaration
I'm not sure if this is enough -- perhaps it's better to make the test
dig through the interface/s to the class?

Fixes 36059.
2020-01-30 22:42:04 -05:00

21 lines
334 B
TypeScript

//// [privateNamesUnique-4.ts]
class A1 { }
interface A2 extends A1 { }
declare const a: A2;
class C { #something: number }
const c: C = a;
//// [privateNamesUnique-4.js]
var _something;
class A1 {
}
class C {
constructor() {
_something.set(this, void 0);
}
}
_something = new WeakMap();
const c = a;