Skip to content

Commit 34a5514

Browse files
committed
Rename new test
1 parent 9394c5c commit 34a5514

4 files changed

+9
-9
lines changed
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
tests/cases/compiler/typeCheckObjectLiteralMethodBody.ts(1,13): error TS7010: 'bar', which lacks return-type annotation, implicitly has an 'any' return type.
2+
3+
4+
==== tests/cases/compiler/typeCheckObjectLiteralMethodBody.ts (1 errors) ====
5+
var foo = { bar() { return undefined } };
6+
~~~~~~~~~~~~~~~~~~~~~~~~~~
7+
!!! error TS7010: 'bar', which lacks return-type annotation, implicitly has an 'any' return type.
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
//// [typeCheckReturnExpressionMethodBody.ts]
1+
//// [typeCheckObjectLiteralMethodBody.ts]
22
var foo = { bar() { return undefined } };
33

4-
//// [typeCheckReturnExpressionMethodBody.js]
4+
//// [typeCheckObjectLiteralMethodBody.js]
55
var foo = { bar: function () { return undefined; } };

tests/baselines/reference/typeCheckReturnExpressionMethodBody.errors.txt

Lines changed: 0 additions & 7 deletions
This file was deleted.

0 commit comments

Comments
 (0)