modified: src/de/dhbwstuttgart/typeinference/unify/RuleSet.java

modified:   src/de/dhbwstuttgart/typeinference/unify/model/Node.java
Genauere Fehlermeldung
This commit is contained in:
Martin Plümicke 2018-01-29 21:30:45 +01:00
parent d2fa9e00f8
commit 5d94820fed
2 changed files with 2 additions and 2 deletions

View File

@ -305,7 +305,7 @@ public class RuleSet implements IRuleSet{
if(!rhsSType.getName().equals(lhsSType.getName()))
return Optional.empty();
if(!(lhsSType.getTypeParams().size()==rhsSType.getTypeParams().size()))throw new DebugException("Fehler in Unifizierung");
if(!(lhsSType.getTypeParams().size()==rhsSType.getTypeParams().size()))throw new DebugException("Fehler in Unifizierung"+ " " + lhsSType.toString() + " " + rhsSType.toString());
//if(rhsSType.getTypeParams().size() != lhsSType.getTypeParams().size())
// return Optional.empty();

View File

@ -94,6 +94,6 @@ class Node<T> {
@Override
public String toString() {
return "Node(" + content.toString() + ")";
return "Node(" + content.toString() + ")\n";
}
}