mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
20 lines
302 B
TypeScript
20 lines
302 B
TypeScript
//// [tests/cases/compiler/assign1.ts] ////
|
|
|
|
//// [assign1.ts]
|
|
namespace M {
|
|
interface I {
|
|
salt:number;
|
|
pepper:number;
|
|
}
|
|
|
|
var x:I={salt:2,pepper:0};
|
|
}
|
|
|
|
|
|
//// [assign1.js]
|
|
"use strict";
|
|
var M;
|
|
(function (M) {
|
|
var x = { salt: 2, pepper: 0 };
|
|
})(M || (M = {}));
|