Use original constructor descriptor when searching cycles
This commit is contained in:
@@ -239,7 +239,7 @@ public class BodyResolver {
|
|||||||
@Nullable
|
@Nullable
|
||||||
private ConstructorDescriptor getDelegatedConstructor(@NotNull ConstructorDescriptor constructor) {
|
private ConstructorDescriptor getDelegatedConstructor(@NotNull ConstructorDescriptor constructor) {
|
||||||
ResolvedCall<ConstructorDescriptor> call = trace.get(CONSTRUCTOR_RESOLVED_DELEGATION_CALL, constructor);
|
ResolvedCall<ConstructorDescriptor> call = trace.get(CONSTRUCTOR_RESOLVED_DELEGATION_CALL, constructor);
|
||||||
return call == null ? null : call.getResultingDescriptor();
|
return call == null ? null : call.getResultingDescriptor().getOriginal();
|
||||||
}
|
}
|
||||||
|
|
||||||
public void resolveBodies(@NotNull BodiesResolveContext c) {
|
public void resolveBodies(@NotNull BodiesResolveContext c) {
|
||||||
|
|||||||
Reference in New Issue
Block a user