Skip to content

Commit e88b553

Browse files
committed
Attempted to apply the operator overridden by the Java method
public static tlc2.value.impl.Value tlc2.overrides.SVG.SVGElemToString(tlc2.value.impl.Value) throws java.lang.Exception, but it produced the following error: Was unable to convert element to a tuple or (function) record: [Bug]
1 parent 0e6ffe5 commit e88b553

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

modules/tlc2/overrides/SVG.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@
4242
import org.jungrapht.visualization.layout.model.Rectangle;
4343

4444
import tlc2.tool.EvalControl;
45+
import tlc2.value.impl.FcnLambdaValue;
4546
import tlc2.value.impl.FcnRcdValue;
4647
import tlc2.value.impl.IntValue;
4748
import tlc2.value.impl.RecordValue;
@@ -112,6 +113,9 @@ public static Value SVGElemToString(Value elem) throws Exception {
112113
} else if (childrenVal instanceof FcnRcdValue) {
113114
FcnRcdValue fcv = (FcnRcdValue) childrenVal.toFcnRcd();
114115
children = fcv.values;
116+
} else if (childrenVal instanceof FcnLambdaValue) {
117+
FcnRcdValue fcv = (FcnRcdValue) childrenVal.toFcnRcd();
118+
children = fcv.values;
115119
} else {
116120
throw new Exception("Was unable to convert element to a tuple or (function) record: " + childrenVal.toString());
117121
}

0 commit comments

Comments
 (0)