TypeScript/tests/baselines/reference/decoratorInstantiateModulesInFunctionBodies.types
2015-05-19 22:07:45 -07:00

40 lines
832 B
Text

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