mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-09 12:15:34 -06:00
Fixed unreachable code in tests.
This commit is contained in:
parent
bb232f739d
commit
f939ff23ce
@ -12,6 +12,4 @@ function f(foo: T) {
|
||||
else {
|
||||
return (foo as S[])[0];
|
||||
}
|
||||
|
||||
throw new Error("Unreachable code hit.");
|
||||
}
|
||||
@ -13,6 +13,4 @@ function f(foo: T) {
|
||||
else {
|
||||
return foo[0];
|
||||
}
|
||||
|
||||
throw new Error("Unreachable code hit.");
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user