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.
1 parent a5563f9 commit a7f7226Copy full SHA for a7f7226
src/resolver.ts
@@ -3173,6 +3173,10 @@ export class Resolver extends DiagnosticEmitter {
3173
let overloadKind = unchecked(_keys[i]);
3174
let overloadPrototype = assert(overloadPrototypes.get(overloadKind));
3175
assert(overloadKind != OperatorKind.INVALID);
3176
+ if (overloadPrototype.is(CommonFlags.GENERIC)) {
3177
+ // Already errored during initialization: AS212: Decorator '@operator' is not valid here
3178
+ continue;
3179
+ }
3180
let operatorInstance: Function | null;
3181
if (overloadPrototype.is(CommonFlags.INSTANCE)) {
3182
let boundPrototype = overloadPrototype.toBound(instance);
0 commit comments