mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
30 lines
695 B
TypeScript
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;
|