Skip to content
Snippets Groups Projects
Commit 99be33f1 authored by Julien Lopez's avatar Julien Lopez
Browse files

Fix printing of type in lists and records

parent 8d40d353
No related branches found
No related tags found
No related merge requests found
......@@ -36,7 +36,7 @@ public final class QIRLcons extends QIRList {
@Override
public final String toString() {
return "[ " + value + ", " + tail + "]" + (type == null ? "" : " : " + type);
return "[ " + value + ", " + tail + "]" + (type.isPresent() ? " : " + type : "");
}
@Override
......
......@@ -45,7 +45,7 @@ public final class QIRRcons extends QIRRecord {
@Override
public final String toString() {
return "{ " + id + ":" + value + "; " + tail + "}" + (type == null ? "" : " : " + type);
return "{ " + id + ":" + value + "; " + tail + "}" + (type.isPresent() ? " : " + type : "");
}
@Override
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment