23 lines
497 B
Text
23 lines
497 B
Text
=== tests/cases/compiler/toStringOnPrimitives.ts ===
|
|
true.toString()
|
|
>true.toString() : string
|
|
>true.toString : () => string
|
|
>true : boolean
|
|
>toString : () => string
|
|
|
|
var aBool = false;
|
|
>aBool : boolean
|
|
>false : boolean
|
|
|
|
aBool.toString();
|
|
>aBool.toString() : string
|
|
>aBool.toString : () => string
|
|
>aBool : boolean
|
|
>toString : () => string
|
|
|
|
1..toString();
|
|
>1..toString() : string
|
|
>1..toString : (radix?: number) => string
|
|
>1. : number
|
|
>toString : (radix?: number) => string
|
|
|