mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-25 05:29:07 -05:00
Don't allow everything to be assignable to string within string mappings like Uppercase/Lowercase (#52734)
This commit is contained in:
4
tests/cases/compiler/stringMappingAssignability.ts
Normal file
4
tests/cases/compiler/stringMappingAssignability.ts
Normal file
@@ -0,0 +1,4 @@
|
||||
// @strict: true
|
||||
|
||||
const x: Uppercase<string> = 42;
|
||||
const y: Uppercase<string> = { foo: "bar" };
|
||||
Reference in New Issue
Block a user