Skip to content

Commit 08ef6e4

Browse files
Accepted baselines.
1 parent 966f370 commit 08ef6e4

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

src/compiler/checker.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -16406,7 +16406,7 @@ namespace ts {
1640616406
function isPotentiallyUncalledDecorator(decorator: Decorator, signatures: Signature[]) {
1640716407
return signatures.length && every(signatures, signature =>
1640816408
signature.minArgumentCount === 0 &&
16409-
signature.parameters.length < getEffectiveArgumentCount(decorator, /*args*/ undefined, signature))
16409+
signature.parameters.length < getEffectiveArgumentCount(decorator, /*args*/ undefined, signature));
1641016410
}
1641116411

1641216412
/**
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
tests/cases/conformance/decorators/class/method/decoratorOnClassMethod6.ts(4,5): error TS1329: A decorator function must accept some number of arguments, but this expression takes none. Did you mean to call it first?
1+
tests/cases/conformance/decorators/class/method/decoratorOnClassMethod6.ts(4,5): error TS1329: This function cannot be used as a decorator. Did you mean to call it first?
22

33

44
==== tests/cases/conformance/decorators/class/method/decoratorOnClassMethod6.ts (1 errors) ====
@@ -7,5 +7,5 @@ tests/cases/conformance/decorators/class/method/decoratorOnClassMethod6.ts(4,5):
77
class C {
88
@dec ["method"]() {}
99
~~~~
10-
!!! error TS1329: A decorator function must accept some number of arguments, but this expression takes none. Did you mean to call it first?
10+
!!! error TS1329: This function cannot be used as a decorator. Did you mean to call it first?
1111
}
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
tests/cases/conformance/decorators/class/property/decoratorOnClassProperty11.ts(4,5): error TS1329: A decorator function must accept some number of arguments, but this expression takes none. Did you mean to call it first?
1+
tests/cases/conformance/decorators/class/property/decoratorOnClassProperty11.ts(4,5): error TS1329: This function cannot be used as a decorator. Did you mean to call it first?
22

33

44
==== tests/cases/conformance/decorators/class/property/decoratorOnClassProperty11.ts (1 errors) ====
@@ -7,5 +7,5 @@ tests/cases/conformance/decorators/class/property/decoratorOnClassProperty11.ts(
77
class C {
88
@dec prop;
99
~~~~
10-
!!! error TS1329: A decorator function must accept some number of arguments, but this expression takes none. Did you mean to call it first?
10+
!!! error TS1329: This function cannot be used as a decorator. Did you mean to call it first?
1111
}

0 commit comments

Comments
 (0)