mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
18 lines
308 B
TypeScript
18 lines
308 B
TypeScript
//// [tests/cases/conformance/types/nonPrimitive/assignObjectToNonPrimitive.ts] ////
|
|
|
|
//// [assignObjectToNonPrimitive.ts]
|
|
var x = {};
|
|
var y = {foo: "bar"};
|
|
var a: object;
|
|
a = x;
|
|
a = y;
|
|
|
|
|
|
//// [assignObjectToNonPrimitive.js]
|
|
"use strict";
|
|
var x = {};
|
|
var y = { foo: "bar" };
|
|
var a;
|
|
a = x;
|
|
a = y;
|