Skip to content

Commit

Permalink
add test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
yeonjuan committed Apr 20, 2024
1 parent 3566643 commit 7a6dd1a
Showing 1 changed file with 25 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1239,6 +1239,31 @@ const x: Foo = {
},
],
},
{
code: `
function foo(): any {
class Foo {
foo = () => () => {
return console.log('foo');
};
}
}
`,
options: [
{
allowTypedFunctionExpressions: true,
},
],
errors: [
{
messageId: 'missingReturnType',
line: 4,
endLine: 4,
column: 20,
endColumn: 22,
},
],
},
{
code: '() => () => {};',
options: [{ allowHigherOrderFunctions: true }],
Expand Down

0 comments on commit 7a6dd1a

Please sign in to comment.