feat: Handle assignment of a template literal to a number
function f4<T extends number>(s: string, n: number, b: boolean, t: T) {
let x: `*${number}*`;
x = `*${b}*` as const; // Error
}
Reports the required error for the above case where *${boolean}* is assigned to *${number}*
Thank you for the PR! Commit: ba73ea7450c3515025b31b2588200a2d969bfb38
Files to check
These are files which is affected by the current PR, but not reflected. If there's no file below this message, please ignore this message.
You can run ./scripts/auto-unignore.sh from crates/stc_ts_file_analyzer for typescript files, and ./scripts/check.sh from crates/stc_ts_type_checker for *.stats.rust-debug files.
Can you rebase?
This has been at the back of my mind for the past two months but I ve been extremely busy the last two months. I will get to it asap!