mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
49 lines
1.2 KiB
JSON
49 lines
1.2 KiB
JSON
// === findAllReferences ===
|
|
// === /findAllRefsRedeclaredPropertyInDerivedInterface.ts ===
|
|
// interface A {
|
|
// readonly /*FIND ALL REFS*/[|x|]: number | string;
|
|
// }
|
|
// interface B extends A {
|
|
// readonly [|x|]: number;
|
|
// }
|
|
// const a: A = { [|x|]: 0 };
|
|
// const b: B = { [|x|]: 0 };
|
|
|
|
|
|
|
|
// === findAllReferences ===
|
|
// === /findAllRefsRedeclaredPropertyInDerivedInterface.ts ===
|
|
// interface A {
|
|
// readonly [|x|]: number | string;
|
|
// }
|
|
// interface B extends A {
|
|
// readonly /*FIND ALL REFS*/[|x|]: number;
|
|
// }
|
|
// const a: A = { [|x|]: 0 };
|
|
// const b: B = { [|x|]: 0 };
|
|
|
|
|
|
|
|
// === findAllReferences ===
|
|
// === /findAllRefsRedeclaredPropertyInDerivedInterface.ts ===
|
|
// interface A {
|
|
// readonly [|x|]: number | string;
|
|
// }
|
|
// interface B extends A {
|
|
// readonly [|x|]: number;
|
|
// }
|
|
// const a: A = { /*FIND ALL REFS*/[|x|]: 0 };
|
|
// const b: B = { [|x|]: 0 };
|
|
|
|
|
|
|
|
// === findAllReferences ===
|
|
// === /findAllRefsRedeclaredPropertyInDerivedInterface.ts ===
|
|
// interface A {
|
|
// readonly [|x|]: number | string;
|
|
// }
|
|
// interface B extends A {
|
|
// readonly [|x|]: number;
|
|
// }
|
|
// const a: A = { [|x|]: 0 };
|
|
// const b: B = { /*FIND ALL REFS*/[|x|]: 0 }; |