mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
19 lines
651 B
Plaintext
19 lines
651 B
Plaintext
//// [tests/cases/conformance/types/primitives/number/assignFromNumberInterface.ts] ////
|
|
|
|
=== assignFromNumberInterface.ts ===
|
|
var x = 1;
|
|
>x : Symbol(x, Decl(assignFromNumberInterface.ts, 0, 3))
|
|
|
|
declare var a: Number;
|
|
>a : Symbol(a, Decl(assignFromNumberInterface.ts, 1, 11))
|
|
>Number : Symbol(Number, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --))
|
|
|
|
x = a;
|
|
>x : Symbol(x, Decl(assignFromNumberInterface.ts, 0, 3))
|
|
>a : Symbol(a, Decl(assignFromNumberInterface.ts, 1, 11))
|
|
|
|
a = x;
|
|
>a : Symbol(a, Decl(assignFromNumberInterface.ts, 1, 11))
|
|
>x : Symbol(x, Decl(assignFromNumberInterface.ts, 0, 3))
|
|
|