mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
19 lines
743 B
Plaintext
19 lines
743 B
Plaintext
//// [tests/cases/conformance/types/primitives/string/assignFromStringInterface.ts] ////
|
|
|
|
=== assignFromStringInterface.ts ===
|
|
var x = '';
|
|
>x : Symbol(x, Decl(assignFromStringInterface.ts, 0, 3))
|
|
|
|
declare var a: String;
|
|
>a : Symbol(a, Decl(assignFromStringInterface.ts, 1, 11))
|
|
>String : Symbol(String, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --) ... and 1 more)
|
|
|
|
x = a;
|
|
>x : Symbol(x, Decl(assignFromStringInterface.ts, 0, 3))
|
|
>a : Symbol(a, Decl(assignFromStringInterface.ts, 1, 11))
|
|
|
|
a = x;
|
|
>a : Symbol(a, Decl(assignFromStringInterface.ts, 1, 11))
|
|
>x : Symbol(x, Decl(assignFromStringInterface.ts, 0, 3))
|
|
|