Replies: 2 comments 1 reply
-
Do we cover constants as well? for e.g. const i = 8;
public function main() {
float f = 56;
float _ = f / d; // operator '/' not defined for 'float' and 'int'
} |
Beta Was this translation helpful? Give feedback.
1 reply
-
Since we are not going to allow
@hasithaa @gimantha @MaryamZi @pcnfernando Your suggestions are highly appreciated on this |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Currently, int literal is allowed in multiplicative expression with
float
anddecimal
. ie the following are currently supportedSimilarly with the float. But this is not supported with
int
variable reference. ie the following will failWe are going to add the support for int variable reference as well. Your input is much appreciated on this.
Link to spec issue: ballerina-platform/ballerina-spec#261
Link to lang issue: #35179
Beta Was this translation helpful? Give feedback.
All reactions