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 06e30bc commit e73645cCopy full SHA for e73645c
src/resolver.ts
@@ -3164,6 +3164,10 @@ export class Resolver extends DiagnosticEmitter {
3164
let overloadKind = unchecked(_keys[i]);
3165
let overloadPrototype = assert(overloadPrototypes.get(overloadKind));
3166
assert(overloadKind != OperatorKind.INVALID);
3167
+ if (overloadPrototype.is(CommonFlags.GENERIC)) {
3168
+ // Already errored during initialization: AS212: Decorator '@operator' is not valid here
3169
+ continue;
3170
+ }
3171
let operatorInstance: Function | null;
3172
if (overloadPrototype.is(CommonFlags.INSTANCE)) {
3173
let boundPrototype = overloadPrototype.toBound(instance);
0 commit comments