TypeScript/tests/baselines/reference/booleanPropertyAccess.types

20 lines
788 B
Plaintext
Raw Normal View History

2014-08-15 23:33:16 +02:00
=== tests/cases/conformance/types/primitives/boolean/booleanPropertyAccess.ts ===
var x = true;
2015-04-13 23:01:57 +02:00
>x : boolean, Symbol(x, Decl(booleanPropertyAccess.ts, 0, 3))
2015-04-13 21:36:11 +02:00
>true : boolean
2014-08-15 23:33:16 +02:00
var a = x.toString();
2015-04-13 23:01:57 +02:00
>a : string, Symbol(a, Decl(booleanPropertyAccess.ts, 2, 3))
2014-08-15 23:33:16 +02:00
>x.toString() : string
2015-04-13 23:01:57 +02:00
>x.toString : () => string, Symbol(Object.toString, Decl(lib.d.ts, 96, 26))
>x : boolean, Symbol(x, Decl(booleanPropertyAccess.ts, 0, 3))
>toString : () => string, Symbol(Object.toString, Decl(lib.d.ts, 96, 26))
2014-08-15 23:33:16 +02:00
var b = x['toString']();
2015-04-13 23:01:57 +02:00
>b : string, Symbol(b, Decl(booleanPropertyAccess.ts, 3, 3))
2014-08-15 23:33:16 +02:00
>x['toString']() : string
>x['toString'] : () => string
2015-04-13 23:01:57 +02:00
>x : boolean, Symbol(x, Decl(booleanPropertyAccess.ts, 0, 3))
>'toString' : string, Symbol(Object.toString, Decl(lib.d.ts, 96, 26))
2014-08-15 23:33:16 +02:00