Skip to content

archaeron/typescript-testcase

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Possible TypeScript bug

Reproduction

Reproduce with nix

enter a nix shell

nix-shell

follow Reproduce with global npm + node

Reproduce with global npm + node

npx tsc

Outcome

TypeScript will tell you:

testcase.ts:3:39 - error TS7030: Not all code paths return a value.

3 export function f1(q: Q | undefined): string {
                                        ~~~~~~


Found 1 error.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published