We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 56e0c6b commit 34f6e68Copy full SHA for 34f6e68
tests/cases/conformance/controlFlow/neverReturningFunctions1.ts
@@ -160,8 +160,9 @@ function f42(x: number) {
160
function f43() {
161
const fail = (): never => { throw new Error(); };
162
const f = [fail];
163
- fail(); // Error
164
- f[0](); // Error
+ fail(); // No effect (missing type annotation)
+ f[0](); // No effect (not a dotted name)
165
+ f;
166
}
167
168
// Repro from #33582
0 commit comments