π Search Terms
microsoft/typescript-go#2039
π Version & Regression Information
β― Playground Link
https://www.typescriptlang.org/play/?#code/GYVwdgxgLglg9mABDKBTATgQzQFRABwBtUBnACigOJIC5EBtEqdGMAcwBpEmX2BdenwCUiAN4AoRFMSUipAHTA46AKKYIACzIURAXgB8YgL5DxRoA
π» Code
/// <reference path="fourslash.ts" />
//// function iterateTuples(tuples: [string, string][]) {
//// tuples.forEach((t) => {})
//// }
verify.baselineInlayHints(undefined, {
includeInlayVariableTypeHints: true,
includeInlayParameterNameHints: "all",
includeInlayFunctionParameterTypeHints: true,
});
π Actual behavior
On TypeScript, this works as intended.
On the TypeScript Go port, we get the error seen in microsoft/typescript-go#2039:
Unhandled case in Node.ElementList: KindTupleType
π Expected behavior
// === Inlay Hints ===
tuples.forEach((t) => {})
^
{
"text": "callbackfn:",
"position": 72,
"kind": "Parameter",
"whitespaceAfter": true
}
tuples.forEach((t) => {})
^
{
"text": ": [string, string]",
"position": 74,
"kind": "Type",
"whitespaceBefore": true
}
Additional information about the issue
See #62740 for the PR that adds this test case and baseline.
π Search Terms
microsoft/typescript-go#2039
π Version & Regression Information
Unhandled case in Node.ElementList: KindTupleTypeΒ typescript-go#2039β― Playground Link
https://www.typescriptlang.org/play/?#code/GYVwdgxgLglg9mABDKBTATgQzQFRABwBtUBnACigOJIC5EBtEqdGMAcwBpEmX2BdenwCUiAN4AoRFMSUipAHTA46AKKYIACzIURAXgB8YgL5DxRoA
π» Code
π Actual behavior
On TypeScript, this works as intended.
On the TypeScript Go port, we get the error seen in microsoft/typescript-go#2039:
π Expected behavior
Additional information about the issue
See #62740 for the PR that adds this test case and baseline.