Rename new test
This commit is contained in:
parent
eb7290eb70
commit
f390133a12
|
@ -0,0 +1,7 @@
|
|||
tests/cases/compiler/typeCheckObjectLiteralMethodBody.ts(1,13): error TS7010: 'bar', which lacks return-type annotation, implicitly has an 'any' return type.
|
||||
|
||||
|
||||
==== tests/cases/compiler/typeCheckObjectLiteralMethodBody.ts (1 errors) ====
|
||||
var foo = { bar() { return undefined } };
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
!!! error TS7010: 'bar', which lacks return-type annotation, implicitly has an 'any' return type.
|
|
@ -1,5 +1,5 @@
|
|||
//// [typeCheckReturnExpressionMethodBody.ts]
|
||||
//// [typeCheckObjectLiteralMethodBody.ts]
|
||||
var foo = { bar() { return undefined } };
|
||||
|
||||
//// [typeCheckReturnExpressionMethodBody.js]
|
||||
//// [typeCheckObjectLiteralMethodBody.js]
|
||||
var foo = { bar: function () { return undefined; } };
|
|
@ -1,7 +0,0 @@
|
|||
tests/cases/compiler/typeCheckReturnExpressionMethodBody.ts(1,13): error TS7010: 'bar', which lacks return-type annotation, implicitly has an 'any' return type.
|
||||
|
||||
|
||||
==== tests/cases/compiler/typeCheckReturnExpressionMethodBody.ts (1 errors) ====
|
||||
var foo = { bar() { return undefined } };
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
!!! error TS7010: 'bar', which lacks return-type annotation, implicitly has an 'any' return type.
|
Loading…
Reference in a new issue