TypeScript/tests/baselines/reference/decoratorChecksFunctionBodies.errors.txt
2015-05-19 22:07:45 -07:00

21 lines
No EOL
613 B
Text

tests/cases/conformance/decorators/class/decoratorChecksFunctionBodies.ts(9,14): error TS2345: Argument of type 'number' is not assignable to parameter of type 'string'.
==== tests/cases/conformance/decorators/class/decoratorChecksFunctionBodies.ts (1 errors) ====
// from #2971
function func(s: string): void {
}
class A {
@(x => {
var a = 3;
func(a);
~
!!! error TS2345: Argument of type 'number' is not assignable to parameter of type 'string'.
return x;
})
m() {
}
}