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 {
63356335 }
63366336 case ElementKind . PROPERTY : {
63376337 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+
63396348 let thisArg : ExpressionRef = 0 ;
63406349 if ( propertyInstance . is ( CommonFlags . INSTANCE ) ) {
63416350 thisArg = this . compileExpression (
You can’t perform that action at this time.
0 commit comments