StringBuilder b = new StringBuilder();
b.append("Expected <");
requiredType.toString(new TypeUnparsingContext(), b);
- b.append(">, but no alteratives match the type: ");
+ b.append(">, but no alternatives match the type: ");
for(int i=0;i<alternatives.length;++i) {
b.append("\n ");
b.append(alternatives[i]);
if(resolvedExpression != null)
return resolvedExpression;
else {
+ if(DEBUG)
+ System.out.println("EAmbigious.simplify: error");
context.getErrorLog().log(location, getAmbiguousDescription(getType()));
return this;
}
}
public void assertResolved(ErrorLog errorLog) {
- if(resolvedExpression == null)
+ if(resolvedExpression == null) {
+ if(DEBUG)
+ System.out.println("EAmbigious.assertResolved: error");
errorLog.log(location, getAmbiguousDescription(getType()));
+ }
}
@Override