Files
tsgo/testdata/baselines/reference/compiler/declarationEmitNestedExpandoPropsRegression.js

30 lines
695 B
TypeScript

//// [tests/cases/compiler/declarationEmitNestedExpandoPropsRegression.ts] ////
//// [declarationEmitNestedExpandoPropsRegression.ts]
function Foo(): void { }
Foo.top = 1;
let d: number = (Foo.inInitializer = 2);
if (true) {
Foo.inBlock = 3;
}
//// [declarationEmitNestedExpandoPropsRegression.js]
"use strict";
function Foo() { }
Foo.top = 1;
let d = (Foo.inInitializer = 2);
if (true) {
Foo.inBlock = 3;
}
//// [declarationEmitNestedExpandoPropsRegression.d.ts]
declare function Foo(): void;
declare namespace Foo {
var _a: number;
export { _a as top };
export var inInitializer: number;
export var inBlock: number;
}
declare let d: number;