[Bug]: Incorrect compiler incompatible types error when a type is of the expected type #42439
Labels
Team/CompilerFE
All issues related to Language implementation and Compiler, this exclude run times.
Type/Bug
userCategory/Compilation
Description
The code snippet in the "Steps to Reproduce" section triggers an incompatible types error, even though the variable has the expected type. As temporary workarounds, a type cast or
var
can be used.Steps to Reproduce
This triggers the compiler error:
ERROR [main.bal:(14:50,14:70)] incompatible types: expected '(ballerinax/health.fhir.r4:4.3.3:OperationConfig[] & readonly)', found '(ballerinax/health.fhir.r4:4.3.3:OperationConfig[] & readonly)'
Affected Version(s)
Ballerina 2201.8.6 (Swan Lake Update 8)
OS, DB, other environment details and versions
OS: Windows 10
r4
package version: 4.3.3Related 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: