We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
isExpression
1 parent e2141ad commit c4ed554Copy full SHA for c4ed554
src/compiler/checker.ts
@@ -15220,7 +15220,7 @@ namespace ts {
15220
// example, given a 'function wrap<T, U>(cb: (x: T) => U): (x: T) => U' and a call expression
15221
// 'let f: (x: string) => number = wrap(s => s.length)', we infer from the declared type of 'f' to the
15222
// return type of 'wrap'.
15223
- if (isExpression(node)) {
+ if (node.kind !== SyntaxKind.Decorator) {
15224
const contextualType = getContextualType(node);
15225
if (contextualType) {
15226
// We clone the contextual mapper to avoid disturbing a resolution in progress for an
0 commit comments