TypeScript/tests/baselines/reference/recur1.types

31 lines
607 B
Plaintext
Raw Normal View History

2014-08-15 23:33:16 +02:00
=== tests/cases/compiler/recur1.ts ===
var salt:any = new salt.pepper();
>salt : any
2014-08-15 23:33:16 +02:00
>new salt.pepper() : any
>salt.pepper : any
>salt : any
2014-08-15 23:33:16 +02:00
>pepper : any
salt.pepper = function() {}
>salt.pepper = function() {} : () => void
>salt.pepper : any
>salt : any
2014-08-15 23:33:16 +02:00
>pepper : any
>function() {} : () => void
var cobalt = new cobalt.pitch();
>cobalt : any
2014-08-15 23:33:16 +02:00
>new cobalt.pitch() : any
>cobalt.pitch : any
>cobalt : any
2014-08-15 23:33:16 +02:00
>pitch : any
cobalt.pitch = function() {}
>cobalt.pitch = function() {} : () => void
>cobalt.pitch : any
>cobalt : any
2014-08-15 23:33:16 +02:00
>pitch : any
>function() {} : () => void