mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
ee33e62c91
Co-authored-by: copilot-swe-agent[bot] <[email protected]> Co-authored-by: jakebailey <[email protected]>
41 lines
720 B
JSON
41 lines
720 B
JSON
// === goToDefinition ===
|
|
// === /goToDefinitionObjectLiteralProperties3.ts ===
|
|
// type A = {
|
|
// <|[|foo|]: unknown;|>
|
|
// };
|
|
//
|
|
// type B = {
|
|
// <|[|foo|]?: unknown;|>
|
|
// bar: unknown;
|
|
// };
|
|
//
|
|
// function test1(arg: A | B) {}
|
|
//
|
|
// test1({
|
|
// foo/*GOTO DEF*/: 1,
|
|
// });
|
|
//
|
|
// function test2<T extends A>(arg: T | B) {}
|
|
// --- (line: 17) skipped ---
|
|
|
|
|
|
|
|
// === goToDefinition ===
|
|
// === /goToDefinitionObjectLiteralProperties3.ts ===
|
|
// type A = {
|
|
// <|[|foo|]: unknown;|>
|
|
// };
|
|
//
|
|
// type B = {
|
|
// <|[|foo|]?: unknown;|>
|
|
// bar: unknown;
|
|
// };
|
|
//
|
|
// --- (line: 10) skipped ---
|
|
|
|
// --- (line: 15) skipped ---
|
|
// function test2<T extends A>(arg: T | B) {}
|
|
//
|
|
// test2({
|
|
// foo/*GOTO DEF*/: 2,
|
|
// }); |