2014-08-15 23:33:16 +02:00
|
|
|
=== tests/cases/conformance/types/primitives/number/numberPropertyAccess.ts ===
|
|
|
|
var x = 1;
|
2015-04-13 23:01:57 +02:00
|
|
|
>x : number, Symbol(x, Decl(numberPropertyAccess.ts, 0, 3))
|
2015-04-13 21:36:11 +02:00
|
|
|
>1 : number
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
var a = x.toExponential();
|
2015-04-13 23:01:57 +02:00
|
|
|
>a : string, Symbol(a, Decl(numberPropertyAccess.ts, 1, 3))
|
2014-08-15 23:33:16 +02:00
|
|
|
>x.toExponential() : string
|
2015-04-13 23:01:57 +02:00
|
|
|
>x.toExponential : (fractionDigits?: number) => string, Symbol(Number.toExponential, Decl(lib.d.ts, 469, 45))
|
|
|
|
>x : number, Symbol(x, Decl(numberPropertyAccess.ts, 0, 3))
|
|
|
|
>toExponential : (fractionDigits?: number) => string, Symbol(Number.toExponential, Decl(lib.d.ts, 469, 45))
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
var b = x.hasOwnProperty('toFixed');
|
2015-04-13 23:01:57 +02:00
|
|
|
>b : boolean, Symbol(b, Decl(numberPropertyAccess.ts, 2, 3))
|
2014-08-15 23:33:16 +02:00
|
|
|
>x.hasOwnProperty('toFixed') : boolean
|
2015-04-13 23:01:57 +02:00
|
|
|
>x.hasOwnProperty : (v: string) => boolean, Symbol(Object.hasOwnProperty, Decl(lib.d.ts, 105, 22))
|
|
|
|
>x : number, Symbol(x, Decl(numberPropertyAccess.ts, 0, 3))
|
|
|
|
>hasOwnProperty : (v: string) => boolean, Symbol(Object.hasOwnProperty, Decl(lib.d.ts, 105, 22))
|
2015-04-13 21:36:11 +02:00
|
|
|
>'toFixed' : string
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
var c = x['toExponential']();
|
2015-04-13 23:01:57 +02:00
|
|
|
>c : string, Symbol(c, Decl(numberPropertyAccess.ts, 4, 3))
|
2014-08-15 23:33:16 +02:00
|
|
|
>x['toExponential']() : string
|
|
|
|
>x['toExponential'] : (fractionDigits?: number) => string
|
2015-04-13 23:01:57 +02:00
|
|
|
>x : number, Symbol(x, Decl(numberPropertyAccess.ts, 0, 3))
|
|
|
|
>'toExponential' : string, Symbol(Number.toExponential, Decl(lib.d.ts, 469, 45))
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
var d = x['hasOwnProperty']('toFixed');
|
2015-04-13 23:01:57 +02:00
|
|
|
>d : boolean, Symbol(d, Decl(numberPropertyAccess.ts, 5, 3))
|
2014-08-15 23:33:16 +02:00
|
|
|
>x['hasOwnProperty']('toFixed') : boolean
|
|
|
|
>x['hasOwnProperty'] : (v: string) => boolean
|
2015-04-13 23:01:57 +02:00
|
|
|
>x : number, Symbol(x, Decl(numberPropertyAccess.ts, 0, 3))
|
|
|
|
>'hasOwnProperty' : string, Symbol(Object.hasOwnProperty, Decl(lib.d.ts, 105, 22))
|
2015-04-13 21:36:11 +02:00
|
|
|
>'toFixed' : string
|
2014-08-15 23:33:16 +02:00
|
|
|
|