Skip to content

Commit

Permalink
fixed some tests for interfaces
Browse files Browse the repository at this point in the history
  • Loading branch information
LorenzoBettini committed Dec 22, 2023
1 parent 67ceb1d commit e83d91d
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -785,6 +785,7 @@ public void accept(JvmTypeReference capturingTypeReference) {
casted.setEquivalent(capturingTypeReference);
IFeatureScopeSession mySession = addThisAndSuper(nestedSession, resolvedTypes.getReferenceOwner(), localClass, superTypeReference, false);
if(type.eClass() == TypesPackage.Literals.JVM_GENERIC_TYPE && ((JvmGenericType) type).isInterface()
|| type.eClass() == TypesPackage.Literals.JVM_GENERIC_INTERFACE
|| type.eClass() == TypesPackage.Literals.JVM_ANNOTATION_TYPE) {
localClass.getSuperTypes().add(0, typesBuilder.newTypeRef(localClass, Object.class));
inferAnonymousClassConstructor(anonymousClass, localClass);
Expand Down

0 comments on commit e83d91d

Please sign in to comment.