mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
28 lines
481 B
TypeScript
28 lines
481 B
TypeScript
//// [tests/cases/conformance/classes/members/privateNames/privateNameAndPropertySignature.ts] ////
|
|
|
|
//// [privateNameAndPropertySignature.ts]
|
|
type A = {
|
|
#foo: string;
|
|
#bar(): string;
|
|
}
|
|
|
|
interface B {
|
|
#foo: string;
|
|
#bar(): string;
|
|
}
|
|
|
|
declare const x: {
|
|
#foo: number;
|
|
bar: {
|
|
#baz: string;
|
|
#taz(): string;
|
|
}
|
|
#baz(): string;
|
|
};
|
|
|
|
declare const y: [{ qux: { #quux: 3 } }];
|
|
|
|
|
|
//// [privateNameAndPropertySignature.js]
|
|
"use strict";
|