From 86a7abd92767e109f81ee4b166d4b29d22ec4e4a Mon Sep 17 00:00:00 2001 From: Cole Faust Date: Wed, 22 May 2024 13:40:57 -0700 Subject: [PATCH] Preserve type when promoting non-selects to selects Bug: 323382414 Test: m nothing --no-skip-soong-tests Change-Id: I1ad7e891f5422bb3587ebac1f8bda7dd5792ae3b --- parser/parser.go | 1 + 1 file changed, 1 insertion(+) diff --git a/parser/parser.go b/parser/parser.go index eaed054..81dafc9 100644 --- a/parser/parser.go +++ b/parser/parser.go @@ -390,6 +390,7 @@ func (p *parser) evaluateOperator(value1, value2 Expression, operator rune, Cases: []*SelectCase{{ Value: e1, }}, + ExpressionType: e1.Type(), } } }