File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -6335,7 +6335,16 @@ export class Compiler extends DiagnosticEmitter {
6335
6335
}
6336
6336
case ElementKind . PROPERTY : {
6337
6337
let propertyInstance = < Property > target ;
6338
- let getterInstance = assert ( propertyInstance . getterInstance ) ;
6338
+ let getterInstance = propertyInstance . getterInstance ;
6339
+
6340
+ if ( ! getterInstance ) {
6341
+ this . error (
6342
+ DiagnosticCode . Cannot_invoke_an_expression_whose_type_lacks_a_call_signature_Type_0_has_no_compatible_call_signatures ,
6343
+ expression . range , this . currentType . toString ( )
6344
+ ) ;
6345
+ return module . unreachable ( ) ;
6346
+ }
6347
+
6339
6348
let thisArg : ExpressionRef = 0 ;
6340
6349
if ( propertyInstance . is ( CommonFlags . INSTANCE ) ) {
6341
6350
thisArg = this . compileExpression (
You can’t perform that action at this time.
0 commit comments