Skip to content

Commit f701b13

Browse files
committed
Add tests
1 parent 9fb06c6 commit f701b13

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

tests/cases/conformance/types/never/neverTypeErrors1.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ function f1() {
66
x = undefined;
77
x = null;
88
x = {};
9+
x();
910
}
1011

1112
function f2(): never {

tests/cases/conformance/types/never/neverTypeErrors2.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ function f1() {
88
x = undefined;
99
x = null;
1010
x = {};
11+
x();
1112
}
1213

1314
function f2(): never {

0 commit comments

Comments
 (0)