[Bug]: Invalid error message on numeric literal assignment #38498
Labels
Team/CompilerFE
All issues related to Language implementation and Compiler, this exclude run times.
Type/Bug
Description
Following code gives error message,
ERROR [app.bal:(3:10,3:13)] incompatible types: expected '2.0d', found 'float'
But according to the spec the the type of the
3.0
is decimal. So the correct error message should beERROR [app.bal:(3:10,3:13)] incompatible types: expected '2.0d', found 'decimal'
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: