mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-17 00:55:32 -05:00
Fixed unreachable code in tests.
This commit is contained in:
@@ -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