mirror of
https://github.com/swc-project/swc.git
synced 2024-12-29 16:42:28 +03:00
17 lines
242 B
TypeScript
17 lines
242 B
TypeScript
|
// @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();
|