18 lines
357 B
Text
18 lines
357 B
Text
|
=== tests/cases/conformance/types/primitives/boolean/booleanPropertyAccess.ts ===
|
||
|
var x = true;
|
||
|
>x : boolean
|
||
|
|
||
|
var a = x.toString();
|
||
|
>a : string
|
||
|
>x.toString() : string
|
||
|
>x.toString : () => string
|
||
|
>x : boolean
|
||
|
>toString : () => string
|
||
|
|
||
|
var b = x['toString']();
|
||
|
>b : string
|
||
|
>x['toString']() : string
|
||
|
>x['toString'] : () => string
|
||
|
>x : boolean
|
||
|
|