Instances of ChainedScope should always have a debugMessage

This commit is contained in:
Andrey Breslav
2013-12-26 14:21:56 +04:00
parent 9353bfc449
commit debacf0554
6 changed files with 10 additions and 9 deletions
@@ -37,10 +37,6 @@ public class ChainedScope implements JetScope {
private Collection<DeclarationDescriptor> allDescriptors;
private List<ReceiverParameterDescriptor> implicitReceiverHierarchy;
public ChainedScope(DeclarationDescriptor containingDeclaration, JetScope... scopes) {
this(containingDeclaration, "Untitled chained scope", scopes);
}
public ChainedScope(DeclarationDescriptor containingDeclaration, String debugName, JetScope... scopes) {
this.containingDeclaration = containingDeclaration;
scopeChain = scopes.clone();
@@ -215,7 +215,7 @@ public class TypeUtils {
constructor,
allNullable,
Collections.<TypeProjection>emptyList(),
new ChainedScope(null, scopes)); // TODO : check intersectibility, don't use a chanied scope
new ChainedScope(null, "member scope for intersection type " + constructor, scopes)); // TODO : check intersectibility, don't use a chanied scope
}
private static class TypeUnifier {