remove useless test case
This commit is contained in:
parent
691459304f
commit
c47a57fb76
5 changed files with 0 additions and 42 deletions
|
@ -1,12 +0,0 @@
|
|||
tests/cases/compiler/explicitReturnUnknow.ts(1,15): error TS2355: A function whose declared type is neither 'void' nor 'any' must return a value.
|
||||
tests/cases/compiler/explicitReturnUnknow.ts(2,15): error TS2355: A function whose declared type is neither 'void' nor 'any' must return a value.
|
||||
|
||||
|
||||
==== tests/cases/compiler/explicitReturnUnknow.ts (2 errors) ====
|
||||
function f(): unknown { ""; }
|
||||
~~~~~~~
|
||||
!!! error TS2355: A function whose declared type is neither 'void' nor 'any' must return a value.
|
||||
function g(): string | undefined { ""; }
|
||||
~~~~~~~~~~~~~~~~~~
|
||||
!!! error TS2355: A function whose declared type is neither 'void' nor 'any' must return a value.
|
||||
|
|
@ -1,12 +0,0 @@
|
|||
//// [explicitReturnUnknow.ts]
|
||||
function f(): unknown { ""; }
|
||||
function g(): string | undefined { ""; }
|
||||
|
||||
|
||||
//// [explicitReturnUnknow.js]
|
||||
function f() {
|
||||
"";
|
||||
}
|
||||
function g() {
|
||||
"";
|
||||
}
|
|
@ -1,7 +0,0 @@
|
|||
=== tests/cases/compiler/explicitReturnUnknow.ts ===
|
||||
function f(): unknown { ""; }
|
||||
>f : Symbol(f, Decl(explicitReturnUnknow.ts, 0, 0))
|
||||
|
||||
function g(): string | undefined { ""; }
|
||||
>g : Symbol(g, Decl(explicitReturnUnknow.ts, 0, 29))
|
||||
|
|
@ -1,9 +0,0 @@
|
|||
=== tests/cases/compiler/explicitReturnUnknow.ts ===
|
||||
function f(): unknown { ""; }
|
||||
>f : () => unknown
|
||||
>"" : ""
|
||||
|
||||
function g(): string | undefined { ""; }
|
||||
>g : () => string
|
||||
>"" : ""
|
||||
|
|
@ -1,2 +0,0 @@
|
|||
function f(): unknown { ""; }
|
||||
function g(): string | undefined { ""; }
|
Loading…
Reference in a new issue