TypeScript/tests/baselines/reference/decoratorChecksFunctionBodies.errors.txt

21 lines
618 B
Plaintext
Raw Normal View History

2015-05-20 07:07:45 +02:00
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, p) => {
2015-05-20 07:07:45 +02:00
var a = 3;
func(a);
~
!!! error TS2345: Argument of type 'number' is not assignable to parameter of type 'string'.
return x;
})
m() {
}
}