Use original constructor descriptor when searching cycles

This commit is contained in:
Denis Zharkov
2015-03-15 13:06:32 +03:00
parent 6c46606f2b
commit 682f8a3110
@@ -239,7 +239,7 @@ public class BodyResolver {
@Nullable
private ConstructorDescriptor getDelegatedConstructor(@NotNull ConstructorDescriptor 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) {