Contextually expected type should flow down through arithmetic expressions #262
Labels
lang
Relates to the Ballerina language specification
spec/improve
Something that should be improved in the spec
Milestone
I agree (1) should work, but I think spec needs to be clearer about this. If expression E is E1*E2, and the contextually expected type for E is decimal, then the contextually expected type for both E1 and E2 should also be decimal, but I don't see anything in the spec that says this.
Originally posted by @jclark in #261 (comment)
The text was updated successfully, but these errors were encountered: