TypeScript/tests/cases/compiler/declarationEmitFunctionKeywordProp.ts
Wesley Wigham 08cb0b23e8
Serialize (noncontextual) keyword named namespace members with export declarations in both declaration emitters (#38982)
* fix(38750): create unique names for keywords and re-export them with original names

* Serialize (noncontextual) keyword named namespace members with export declarations in both declaration emitters

* Add exhaustive keyword emit test for js declaration emitter and fix it up

Co-authored-by: Alexander T <alexander.tarasyuk@outlook.com>
2020-06-10 14:42:49 -07:00

11 lines
180 B
TypeScript

// @declaration: true
function foo() {}
foo.null = true;
function bar() {}
bar.async = true;
bar.normal = false;
function baz() {}
baz.class = true;
baz.normal = false;