diff --git a/tests/cases/compiler/isolatedDeclarationsFunctionExpressionInCall.ts b/tests/cases/compiler/isolatedDeclarationsFunctionExpressionInCall.ts new file mode 100644 index 00000000000..514a9813e67 --- /dev/null +++ b/tests/cases/compiler/isolatedDeclarationsFunctionExpressionInCall.ts @@ -0,0 +1,21 @@ +// @isolatedDeclarations: true +// @declaration: true + +declare function observer(fn: T): T; +declare function action(fn: T): T; + +export const Component = observer(() => { + return "hello"; +}); + +export const thing = action(function () { + return Component; +}); + +export const arrowWithType = observer((): string => { + return "typed"; +}); + +export const functionWithType = action(function (): typeof Component { + return Component; +}); \ No newline at end of file