1
0
mirror of https://gitlab.com/camelot/kickc.git synced 2024-12-21 14:30:21 +00:00

FlightControl fix for #678.

This commit is contained in:
jespergravgaard 2023-04-04 12:54:28 +02:00
parent 5c86d25057
commit 3c52043744
2 changed files with 5 additions and 1 deletions

View File

@ -163,7 +163,7 @@ public class Initializers {
ValueListUnionDesignator unionInit = (ValueListUnionDesignator) valueList;
final String memberName = unionInit.getMemberName();
final RValue initValue = unionInit.getList().get(0);
final RValue initValue = unionInit.getMemberValue();
Variable memberDef = null;
for(Variable definition : memberDefinitions) {

View File

@ -27,6 +27,10 @@ public class ValueListUnionDesignator extends ValueList {
public String getMemberName() { return memberName; }
public RValue getMemberValue() {
return getList().get(0);
}
@Override
public String toString(Program program) {
StringBuilder out = new StringBuilder();