Skip to content

Commit 34f6e68

Browse files
committed
Update tests
1 parent 56e0c6b commit 34f6e68

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tests/cases/conformance/controlFlow/neverReturningFunctions1.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,8 +160,9 @@ function f42(x: number) {
160160
function f43() {
161161
const fail = (): never => { throw new Error(); };
162162
const f = [fail];
163-
fail(); // Error
164-
f[0](); // Error
163+
fail(); // No effect (missing type annotation)
164+
f[0](); // No effect (not a dotted name)
165+
f;
165166
}
166167

167168
// Repro from #33582

0 commit comments

Comments
 (0)