22 lines
827 B
Text
22 lines
827 B
Text
=== tests/cases/conformance/types/primitives/string/validStringAssignments.ts ===
|
|
var x = '';
|
|
>x : Symbol(x, Decl(validStringAssignments.ts, 0, 3))
|
|
|
|
var a: any = x;
|
|
>a : Symbol(a, Decl(validStringAssignments.ts, 2, 3))
|
|
>x : Symbol(x, Decl(validStringAssignments.ts, 0, 3))
|
|
|
|
var b: Object = x;
|
|
>b : Symbol(b, Decl(validStringAssignments.ts, 3, 3))
|
|
>Object : Symbol(Object, Decl(lib.d.ts, 92, 1), Decl(lib.d.ts, 223, 11))
|
|
>x : Symbol(x, Decl(validStringAssignments.ts, 0, 3))
|
|
|
|
var c: string = x;
|
|
>c : Symbol(c, Decl(validStringAssignments.ts, 4, 3))
|
|
>x : Symbol(x, Decl(validStringAssignments.ts, 0, 3))
|
|
|
|
var d: String = x;
|
|
>d : Symbol(d, Decl(validStringAssignments.ts, 5, 3))
|
|
>String : Symbol(String, Decl(lib.d.ts, 275, 1), Decl(lib.d.ts, 443, 11))
|
|
>x : Symbol(x, Decl(validStringAssignments.ts, 0, 3))
|
|
|