Fix Bug In Struct Field Initialization
Fields were not given default values when a struct was declared without initializers. Also, cleanup code in the helper function for binary operations on struct instances. Signed-off-by: Will Hawkins <hawkinsw@obs.cr>
This commit is contained in:
@@ -145,10 +145,10 @@ public struct SelectExpression {
|
||||
|
||||
public init(
|
||||
withSelector selector: EvaluatableExpression,
|
||||
withSelectCaseExpressions kses: [SelectCaseExpression]
|
||||
withSelectCaseExpressions sces: [SelectCaseExpression]
|
||||
) {
|
||||
self.selector = selector
|
||||
self.select_expressions = kses
|
||||
self.select_expressions = sces
|
||||
}
|
||||
|
||||
public func append_checked_sce(sce: SelectCaseExpression) -> SelectExpression {
|
||||
|
||||
Reference in New Issue
Block a user