Bind references to type parameters in contraints in LAZY mode

This commit is contained in:
Andrey Breslav
2014-03-05 17:39:38 +04:00
parent 2a82c15465
commit 39de1f131b
@@ -89,6 +89,7 @@ public class LazyTypeParameterDescriptor extends AbstractLazyTypeParameterDescri
JetSimpleNameExpression constrainedParameterName = jetTypeConstraint.getSubjectTypeParameterName();
if (constrainedParameterName != null) {
if (getName().equals(constrainedParameterName.getReferencedNameAsName())) {
resolveSession.getTrace().record(BindingContext.REFERENCE_TARGET, constrainedParameterName, this);
JetTypeReference boundTypeReference = jetTypeConstraint.getBoundTypeReference();
if (boundTypeReference != null) {