mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
22 lines
681 B
Plaintext
22 lines
681 B
Plaintext
//// [tests/cases/conformance/types/nonPrimitive/assignObjectToNonPrimitive.ts] ////
|
|
|
|
=== assignObjectToNonPrimitive.ts ===
|
|
var x = {};
|
|
>x : Symbol(x, Decl(assignObjectToNonPrimitive.ts, 0, 3))
|
|
|
|
var y = {foo: "bar"};
|
|
>y : Symbol(y, Decl(assignObjectToNonPrimitive.ts, 1, 3))
|
|
>foo : Symbol(foo, Decl(assignObjectToNonPrimitive.ts, 1, 9))
|
|
|
|
var a: object;
|
|
>a : Symbol(a, Decl(assignObjectToNonPrimitive.ts, 2, 3))
|
|
|
|
a = x;
|
|
>a : Symbol(a, Decl(assignObjectToNonPrimitive.ts, 2, 3))
|
|
>x : Symbol(x, Decl(assignObjectToNonPrimitive.ts, 0, 3))
|
|
|
|
a = y;
|
|
>a : Symbol(a, Decl(assignObjectToNonPrimitive.ts, 2, 3))
|
|
>y : Symbol(y, Decl(assignObjectToNonPrimitive.ts, 1, 3))
|
|
|