TypeScript/tests/baselines/reference/decoratorInstantiateModulesInFunctionBodies.types

42 lines
981 B
Plaintext
Raw Normal View History

2015-05-20 07:07:45 +02:00
=== tests/cases/conformance/decorators/class/a.ts ===
// from #3108
export var test = 'abc';
>test : string
>'abc' : string
=== tests/cases/conformance/decorators/class/b.ts ===
import { test } from './a';
>test : string
function filter(handler: any) {
>filter : (handler: any) => (target: any, propertyKey: string) => void
2015-05-20 07:07:45 +02:00
>handler : any
return function (target: any, propertyKey: string) {
>function (target: any, propertyKey: string) { // ... } : (target: any, propertyKey: string) => void
2015-05-20 07:07:45 +02:00
>target : any
>propertyKey : string
2015-05-20 07:07:45 +02:00
// ...
};
}
class Wat {
>Wat : Wat
@filter(() => test == 'abc')
>filter(() => test == 'abc') : (target: any, propertyKey: string) => void
>filter : (handler: any) => (target: any, propertyKey: string) => void
2015-05-20 07:07:45 +02:00
>() => test == 'abc' : () => boolean
>test == 'abc' : boolean
>test : string
>'abc' : string
static whatever() {
>whatever : () => void
// ...
}
}