Fix wrong containingDeclaration for property type parameter.

This commit is contained in:
Stanislav Erokhin
2014-08-21 15:08:01 +04:00
parent b69ed539ea
commit c10c1ad7f6
6 changed files with 375 additions and 351 deletions
@@ -952,7 +952,7 @@ public class DescriptorResolver {
WritableScope writableScope = new WritableScopeImpl(
scope, containingDeclaration, new TraceBasedRedeclarationHandler(trace),
"Scope with type parameters of a property");
typeParameterDescriptors = resolveTypeParametersForCallableDescriptor(containingDeclaration, writableScope, typeParameters,
typeParameterDescriptors = resolveTypeParametersForCallableDescriptor(propertyDescriptor, writableScope, typeParameters,
trace);
writableScope.changeLockLevel(WritableScope.LockLevel.READING);
resolveGenericBounds(property, propertyDescriptor, writableScope, typeParameterDescriptors, trace);