26 lines
1.1 KiB
Text
26 lines
1.1 KiB
Text
=== tests/cases/conformance/types/primitives/string/stringPropertyAccess.ts ===
|
|
var x = '';
|
|
>x : Symbol(x, Decl(stringPropertyAccess.ts, 0, 3))
|
|
|
|
var a = x.charAt(0);
|
|
>a : Symbol(a, Decl(stringPropertyAccess.ts, 1, 3))
|
|
>x.charAt : Symbol(String.charAt, Decl(lib.d.ts, 279, 23))
|
|
>x : Symbol(x, Decl(stringPropertyAccess.ts, 0, 3))
|
|
>charAt : Symbol(String.charAt, Decl(lib.d.ts, 279, 23))
|
|
|
|
var b = x.hasOwnProperty('charAt');
|
|
>b : Symbol(b, Decl(stringPropertyAccess.ts, 2, 3))
|
|
>x.hasOwnProperty : Symbol(Object.hasOwnProperty, Decl(lib.d.ts, 105, 22))
|
|
>x : Symbol(x, Decl(stringPropertyAccess.ts, 0, 3))
|
|
>hasOwnProperty : Symbol(Object.hasOwnProperty, Decl(lib.d.ts, 105, 22))
|
|
|
|
var c = x['charAt'](0);
|
|
>c : Symbol(c, Decl(stringPropertyAccess.ts, 4, 3))
|
|
>x : Symbol(x, Decl(stringPropertyAccess.ts, 0, 3))
|
|
>'charAt' : Symbol(String.charAt, Decl(lib.d.ts, 279, 23))
|
|
|
|
var e = x['hasOwnProperty']('toFixed');
|
|
>e : Symbol(e, Decl(stringPropertyAccess.ts, 5, 3))
|
|
>x : Symbol(x, Decl(stringPropertyAccess.ts, 0, 3))
|
|
>'hasOwnProperty' : Symbol(Object.hasOwnProperty, Decl(lib.d.ts, 105, 22))
|
|
|