Typo fixed in the method name
This commit is contained in:
@@ -33,7 +33,7 @@ public class JetTypeConstraint extends JetElementImpl {
|
||||
return visitor.visitTypeConstraint(this, data);
|
||||
}
|
||||
|
||||
public boolean isClassObjectContraint() {
|
||||
public boolean isClassObjectConstraint() {
|
||||
return findChildByType(JetTokens.CLASS_KEYWORD) != null &&
|
||||
findChildByType(JetTokens.OBJECT_KEYWORD) != null;
|
||||
}
|
||||
|
||||
@@ -641,7 +641,7 @@ public class DescriptorResolver {
|
||||
}
|
||||
}
|
||||
for (JetTypeConstraint constraint : declaration.getTypeConstraints()) {
|
||||
if (constraint.isClassObjectContraint()) {
|
||||
if (constraint.isClassObjectConstraint()) {
|
||||
trace.report(UNSUPPORTED.on(constraint, "Class objects constraints are not supported yet"));
|
||||
}
|
||||
|
||||
@@ -656,7 +656,7 @@ public class DescriptorResolver {
|
||||
if (boundTypeReference != null) {
|
||||
bound = typeResolver.resolveType(scope, boundTypeReference, trace, false);
|
||||
deferredUpperBoundCheckerTasks
|
||||
.add(new UpperBoundCheckerTask(boundTypeReference, bound, constraint.isClassObjectContraint()));
|
||||
.add(new UpperBoundCheckerTask(boundTypeReference, bound, constraint.isClassObjectConstraint()));
|
||||
}
|
||||
|
||||
if (typeParameterDescriptor == null) {
|
||||
@@ -673,7 +673,7 @@ public class DescriptorResolver {
|
||||
else {
|
||||
trace.record(BindingContext.REFERENCE_TARGET, subjectTypeParameterName, typeParameterDescriptor);
|
||||
if (bound != null) {
|
||||
if (constraint.isClassObjectContraint()) {
|
||||
if (constraint.isClassObjectConstraint()) {
|
||||
typeParameterDescriptor.addClassObjectBound(bound);
|
||||
}
|
||||
else {
|
||||
|
||||
+1
-1
@@ -83,7 +83,7 @@ public class LazyTypeParameterDescriptor extends AbstractLazyTypeParameterDescri
|
||||
if (classOrObject instanceof JetClass) {
|
||||
JetClass jetClass = (JetClass) classOrObject;
|
||||
for (JetTypeConstraint jetTypeConstraint : jetClass.getTypeConstraints()) {
|
||||
if (jetTypeConstraint.isClassObjectContraint() != forClassObject) continue;
|
||||
if (jetTypeConstraint.isClassObjectConstraint() != forClassObject) continue;
|
||||
|
||||
JetSimpleNameExpression constrainedParameterName = jetTypeConstraint.getSubjectTypeParameterName();
|
||||
if (constrainedParameterName != null) {
|
||||
|
||||
Reference in New Issue
Block a user