mirror of
https://github.com/microsoft/TypeScript.git
synced 2025-11-18 17:21:48 +00:00
Fixed unreachable code in tests.
This commit is contained in:
1 parent
bb232f739d
commit
f939ff23ce
2 files changed
-4
No files matched your search
@@ -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.");
|
||||
}
|
||||
Reference in new issue
Block a user