You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
functiona<Kextends[any]>(){// @ts-ignore Modifiers cannot appear here.(1184)declareconstc1: [...K]// @ts-ignore Modifiers cannot appear here.(1184)declareconstc2: [...K, ...K]// Okconstb1: [any]=c1// Type '[...K, ...K]' is not assignable to type '[any, any]'.// Variadic element at position 0 in source does not match element at position 0 in target.(2322)constb2: [any,any]=c2}
🙁 Actual behavior
c2 is not assignable to b2
🙂 Expected behavior
c2 is assignable to b2
The text was updated successfully, but these errors were encountered:
Bug Report
🔎 Search Terms
Tuple spread variadic element length
🕗 Version & Regression Information
Playground link with relevant code
💻 Code
🙁 Actual behavior
c2 is not assignable to b2
🙂 Expected behavior
c2 is assignable to b2
The text was updated successfully, but these errors were encountered: