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:
parent
5c86d25057
commit
3c52043744
@ -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) {
|
||||
|
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user