🔎 Search Terms
String templates doesn't work with nested generics and keyof
🕗 Version & Regression Information
5.2.2, 5.3
⏯ Playground Link
https://www.typescriptlang.org/play?ts=5.3.2#code/JYOwLgpgTgZghgYwgAgIIB4AqyIA9IgAmAzsgEoQID2Uh6xYUoA5gDTINMjMB8yA3gChkyEBAYRCALmSZBAX0FKYAVxAIwwKiGRwsOfBCKkM-YNI6MW8njwAUYGZgCUA4cgBGD9gHJzP1wB6QORmKipCdy8wXwBafyCQgCEVZgB+BUFVdU1tT308AhI0dDgQAE9bByd2YhpHZABrCHKqGFkAbR8xCUIfAF1kADJLLmZkAB9kAANYgBJ+Ztb2zC6eyD7Bkc5radchTKA
💻 Code
interfaceA<TextendsRecord<string,string>{nested: T}functiona<TextendsA<{id: string}>>(t: T){b(t,'id')// goodb(t,'-id')// Bug?}functionb<TextendsA<any>>(t: T,sort: keyofT['nested']&string| `-${keyofT['nested']&string}`){}🙁 Actual behavior
Template string doesn't work as expected
🙂 Expected behavior
The example should compile without error
Additional information about the issue
No response
🔎 Search Terms
String templates doesn't work with nested generics and keyof
🕗 Version & Regression Information
5.2.2, 5.3
⏯ Playground Link
https://www.typescriptlang.org/play?ts=5.3.2#code/JYOwLgpgTgZghgYwgAgIIB4AqyIA9IgAmAzsgEoQID2Uh6xYUoA5gDTINMjMB8yA3gChkyEBAYRCALmSZBAX0FKYAVxAIwwKiGRwsOfBCKkM-YNI6MW8njwAUYGZgCUA4cgBGD9gHJzP1wB6QORmKipCdy8wXwBafyCQgCEVZgB+BUFVdU1tT308AhI0dDgQAE9bByd2YhpHZABrCHKqGFkAbR8xCUIfAF1kADJLLmZkAB9kAANYgBJ+Ztb2zC6eyD7Bkc5radchTKA
💻 Code
🙁 Actual behavior
Template string doesn't work as expected
🙂 Expected behavior
The example should compile without error
Additional information about the issue
No response