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 70c3bf9 commit f604e5dCopy full SHA for f604e5d
src/compiler.ts
@@ -6335,6 +6335,15 @@ export class Compiler extends DiagnosticEmitter {
6335
}
6336
case ElementKind.PROPERTY: {
6337
let propertyInstance = <Property>target;
6338
+
6339
+ if (propertyInstance.setterInstance && !propertyInstance.getterInstance) {
6340
+ this.error(
6341
+ DiagnosticCode.Cannot_invoke_an_expression_whose_type_lacks_a_call_signature_Type_0_has_no_compatible_call_signatures,
6342
+ expression.range, this.currentType.toString()
6343
+ );
6344
+ return module.unreachable();
6345
+ }
6346
6347
let getterInstance = assert(propertyInstance.getterInstance);
6348
let thisArg: ExpressionRef = 0;
6349
if (propertyInstance.is(CommonFlags.INSTANCE)) {
0 commit comments