compiler, runtime: Refactor P4Type to P4QualifiedType
Also, refer to the different pieces of the qualified type as qualifiers and not attributes. Signed-off-by: Will Hawkins <hawkinsw@obs.cr>
This commit is contained in:
@@ -69,7 +69,7 @@ extension ConditionalStatement: EvaluatableStatement {
|
||||
)
|
||||
}
|
||||
|
||||
if !evaluated_condition.type().dataType().eq(rhs: P4Boolean()) {
|
||||
if !evaluated_condition.type().baseType().eq(rhs: P4Boolean()) {
|
||||
return (
|
||||
ControlFlow.Error,
|
||||
execution.setError(error: Error(withMessage: "Condition expression is not a Boolean"))
|
||||
|
||||
Reference in New Issue
Block a user