Rustam Novikov 0 Posted October 9 I have a following simple code: var x: Currency; var y := x; Can anyone explain why variable y type is Extended and not Currency? My expectation is that type deduction should deduce Currency type from x variable type. This erroneous type deduction leads to problems when later I want to compare variable y to some other variable, say z: Currency: if (x<>z) then raise... Is it "by design" or some compiler issue? Share this post Link to post
Remy Lebeau 1392 Posted October 9 Sounds like a bug to me. Report it to Embarcadero: https://qp.embarcadero.com Share this post Link to post
Rustam Novikov 0 Posted October 9 Thank you. I reported this bug to Embarcadero. Share this post Link to post
EugeneK 19 Posted October 9 It is a long standing bug, see https://quality.embarcadero.com/browse/RSP-25799 https://quality.embarcadero.com/browse/RSP-31289, probably won't be fixed anytime soon. 1 Share this post Link to post