swc/crates/swc_ecma_parser/tests/tsc/privateNamesUnique-5.ts

17 lines
242 B
TypeScript
Raw Normal View History

// @strict: true
// @target: es6
// @strictPropertyInitialization: false
// same as privateNamesUnique-1, but with an interface
class A {
#foo: number;
}
interface A2 extends A { }
class B {
#foo: number;
}
const b: A2 = new B();