TypeScript/tests/baselines/reference/decoratorInstantiateModulesInFunctionBodies.types
2015-05-21 16:45:23 -07:00

42 lines
981 B
Plaintext

=== 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
>handler : any
return function (target: any, propertyKey: string) {
>function (target: any, propertyKey: string) { // ... } : (target: any, propertyKey: string) => void
>target : any
>propertyKey : string
// ...
};
}
class Wat {
>Wat : Wat
@filter(() => test == 'abc')
>filter(() => test == 'abc') : (target: any, propertyKey: string) => void
>filter : (handler: any) => (target: any, propertyKey: string) => void
>() => test == 'abc' : () => boolean
>test == 'abc' : boolean
>test : string
>'abc' : string
static whatever() {
>whatever : () => void
// ...
}
}