TypeScript/tests/baselines/reference/toStringOnPrimitives.symbols
2015-10-05 16:37:45 -07:00

18 lines
636 B
Plaintext

=== tests/cases/compiler/toStringOnPrimitives.ts ===
true.toString()
>true.toString : Symbol(Object.toString, Decl(lib.d.ts, --, --))
>toString : Symbol(Object.toString, Decl(lib.d.ts, --, --))
var aBool = false;
>aBool : Symbol(aBool, Decl(toStringOnPrimitives.ts, 1, 3))
aBool.toString();
>aBool.toString : Symbol(Object.toString, Decl(lib.d.ts, --, --))
>aBool : Symbol(aBool, Decl(toStringOnPrimitives.ts, 1, 3))
>toString : Symbol(Object.toString, Decl(lib.d.ts, --, --))
1..toString();
>1..toString : Symbol(Number.toString, Decl(lib.d.ts, --, --))
>toString : Symbol(Number.toString, Decl(lib.d.ts, --, --))