remove useless test case

This commit is contained in:
王文璐 2018-08-03 16:12:56 +08:00
parent 691459304f
commit c47a57fb76
5 changed files with 0 additions and 42 deletions

View file

@ -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.

View file

@ -1,12 +0,0 @@
//// [explicitReturnUnknow.ts]
function f(): unknown { ""; }
function g(): string | undefined { ""; }
//// [explicitReturnUnknow.js]
function f() {
"";
}
function g() {
"";
}

View file

@ -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))

View file

@ -1,9 +0,0 @@
=== tests/cases/compiler/explicitReturnUnknow.ts ===
function f(): unknown { ""; }
>f : () => unknown
>"" : ""
function g(): string | undefined { ""; }
>g : () => string
>"" : ""

View file

@ -1,2 +0,0 @@
function f(): unknown { ""; }
function g(): string | undefined { ""; }