File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -3449,13 +3449,12 @@ export class Resolver extends DiagnosticEmitter {
34493449 // A generic method cannot implement a non-generic interface method
34503450 // because monomorphization requires a concrete type to generate code,
34513451 // but virtual dispatch through the interface has no type arguments.
3452- let ifaceMember = unimplemented . get ( memberName ) ;
3453- if ( ifaceMember
3452+ if ( unimplemented . has ( memberName )
34543453 && member . kind == ElementKind . FunctionPrototype
3455- && ifaceMember . kind == ElementKind . FunctionPrototype
3454+ && unimplemented . get ( memberName ) ! . kind == ElementKind . FunctionPrototype
34563455 ) {
34573456 let memberTypeParams = ( < FunctionPrototype > member ) . typeParameterNodes ;
3458- let ifaceTypeParams = ( < FunctionPrototype > ifaceMember ) . typeParameterNodes ;
3457+ let ifaceTypeParams = ( < FunctionPrototype > unimplemented . get ( memberName ) ) . typeParameterNodes ;
34593458 let numMemberTypeParams = memberTypeParams ? memberTypeParams . length : 0 ;
34603459 let numIfaceTypeParams = ifaceTypeParams ? ifaceTypeParams . length : 0 ;
34613460 if ( numMemberTypeParams != numIfaceTypeParams ) continue ;
You can’t perform that action at this time.
0 commit comments