Open EvanMachusak opened 2 months ago
.NET is picking up the return type as Choice<Integer,Decimal> because of this case:
Equal(exponent, 0) then 1
(should be Equal(exponent, 0) then 1.0
)
Because of the returns
statement in the function it resolves this to System.Decimal
, but doesn't wrap the Case
with an As
. The Java ELM also does not generate an As
.
Seems ExpressionBuilder should invoke a ChangeType
when the function explicitly declares a return type.
Java cql-to-elm identifies this function as returning
System.Decimal
.NET cql-to-elm identifies this function as returningSystem.Decimal
The outputted C# code identifies this as returning
object
:Related, semicolons are appearing on the line after the closing
}
after a lambda.