19 lines
396 B
Text
19 lines
396 B
Text
=== tests/cases/conformance/types/primitives/boolean/booleanPropertyAccess.ts ===
|
|
var x = true;
|
|
>x : boolean
|
|
>true : 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
|
|
>'toString' : string
|
|
|