28 lines
856 B
Text
28 lines
856 B
Text
=== tests/cases/conformance/types/any/anyPropertyAccess.ts ===
|
|
var x: any;
|
|
>x : Symbol(x, Decl(anyPropertyAccess.ts, 0, 3))
|
|
|
|
var a = x.foo;
|
|
>a : Symbol(a, Decl(anyPropertyAccess.ts, 1, 3))
|
|
>x : Symbol(x, Decl(anyPropertyAccess.ts, 0, 3))
|
|
|
|
var b = x['foo'];
|
|
>b : Symbol(b, Decl(anyPropertyAccess.ts, 2, 3))
|
|
>x : Symbol(x, Decl(anyPropertyAccess.ts, 0, 3))
|
|
|
|
var c = x['fn']();
|
|
>c : Symbol(c, Decl(anyPropertyAccess.ts, 3, 3))
|
|
>x : Symbol(x, Decl(anyPropertyAccess.ts, 0, 3))
|
|
|
|
var d = x.bar.baz;
|
|
>d : Symbol(d, Decl(anyPropertyAccess.ts, 4, 3))
|
|
>x : Symbol(x, Decl(anyPropertyAccess.ts, 0, 3))
|
|
|
|
var e = x[0].foo;
|
|
>e : Symbol(e, Decl(anyPropertyAccess.ts, 5, 3))
|
|
>x : Symbol(x, Decl(anyPropertyAccess.ts, 0, 3))
|
|
|
|
var f = x['0'].bar;
|
|
>f : Symbol(f, Decl(anyPropertyAccess.ts, 6, 3))
|
|
>x : Symbol(x, Decl(anyPropertyAccess.ts, 0, 3))
|
|
|