21 lines
613 B
Text
21 lines
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() {
|
||
|
|
||
|
}
|
||
|
}
|