TypeScript/tests/cases/conformance/salsa/sourceFileMergeWithFunction.ts
Nathan Shively-Sanders 477e4b1a9d
Fix function merged with export as namespace sourcefile (#40908)
Previously it crashed because the function-checking code didn't expect
a node with no parent.
2020-10-02 10:50:12 -07:00

9 lines
196 B
TypeScript

// @Filename: types.d.ts
declare function foo(props: any): any;
export default foo;
export as namespace foo;
// @Filename: foo.ts
/// <reference path="types.d.ts" />
declare function foo(): any;