Preserve type when promoting non-selects to selects

Bug: 323382414
Test: m nothing --no-skip-soong-tests
Change-Id: I1ad7e891f5422bb3587ebac1f8bda7dd5792ae3b
This commit is contained in:
Cole Faust 2024-05-22 13:40:57 -07:00
parent ad00dd50bf
commit 86a7abd927

View file

@ -390,6 +390,7 @@ func (p *parser) evaluateOperator(value1, value2 Expression, operator rune,
Cases: []*SelectCase{{ Cases: []*SelectCase{{
Value: e1, Value: e1,
}}, }},
ExpressionType: e1.Type(),
} }
} }
} }