mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-11 10:00:13 -06:00
Add regression test
This commit is contained in:
parent
5d3ecaebad
commit
319ad71b15
@ -0,0 +1,14 @@
|
||||
// @strict: true
|
||||
|
||||
// Repro from #20840
|
||||
|
||||
function function1<T extends 'a' | 'b'>(key: T) {
|
||||
switch (key) {
|
||||
case 'a':
|
||||
key.toLowerCase();
|
||||
break;
|
||||
default:
|
||||
key.toLowerCase();
|
||||
break;
|
||||
}
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user