TypeScript Version: v4.1.0-dev20200925
Search Terms: pattern literal prefix suffix
Code
const s: `:${string}:` = ":";
Expected behavior:
Assignability error because the pattern `:${string}:` has two literal : characters, while ":" has only one.
Actual behavior:
No error
Playground Link
Related Issues: #40598