Closed
Description
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
Related Issues: #40598