TypeScript/tests/baselines/reference/recur1.types
2015-04-13 14:29:37 -07:00

31 lines
835 B
Plaintext

=== tests/cases/compiler/recur1.ts ===
var salt:any = new salt.pepper();
>salt : any, Symbol(salt, Decl(recur1.ts, 0, 3))
>new salt.pepper() : any
>salt.pepper : any
>salt : any, Symbol(salt, Decl(recur1.ts, 0, 3))
>pepper : any
salt.pepper = function() {}
>salt.pepper = function() {} : () => void
>salt.pepper : any
>salt : any, Symbol(salt, Decl(recur1.ts, 0, 3))
>pepper : any
>function() {} : () => void
var cobalt = new cobalt.pitch();
>cobalt : any, Symbol(cobalt, Decl(recur1.ts, 3, 3))
>new cobalt.pitch() : any
>cobalt.pitch : any
>cobalt : any, Symbol(cobalt, Decl(recur1.ts, 3, 3))
>pitch : any
cobalt.pitch = function() {}
>cobalt.pitch = function() {} : () => void
>cobalt.pitch : any
>cobalt : any, Symbol(cobalt, Decl(recur1.ts, 3, 3))
>pitch : any
>function() {} : () => void