[Bug]: No compile error found for integer literal assignment #38270
Labels
Team/CompilerFE
All issues related to Language implementation and Compiler, this exclude run times.
Type/Bug
userCategory/Compilation
Description
Consider following code.
According to the Ballerina specification literal
2
should have typeint
. So compiler should throw a compile time error.expected error:
incompatible types: expected '2f|1', found 'int'
Steps to Reproduce
No response
Affected Version(s)
No response
OS, DB, other environment details and versions
No response
Related area
-> Compilation
Related issue(s) (optional)
No response
Suggested label(s) (optional)
No response
Suggested assignee(s) (optional)
No response
The text was updated successfully, but these errors were encountered: