TypeScript/tests/cases/compiler/declarationEmitOfFuncspace.ts
Nathan Shively-Sanders 2f8a646f8e
isExpandoFunctionDeclaration only checks values (#27052)
Previously it checked types too, which caused a crash because types
don't have valueDeclaration set. But expando functions can't export
types, only values.
2018-09-12 12:21:50 -07:00

10 lines
162 B
TypeScript

// @declaration: true
// @Filename: expando.ts
// #27032
function ExpandoMerge(n: number) {
return n;
}
namespace ExpandoMerge {
export interface I { }
}