[Bug]: Module-level variables not getting type-narrowed within the function scope #42028
Labels
Priority/Blocker
Team/CompilerFE
All issues related to Language implementation and Compiler, this exclude run times.
Type/Bug
Description
Refer to the below code, which is a simplified version to reproduce the issue.
This fails with the compilation error
operator '+' not defined for '(string|int)' and 'string'
.Steps to Reproduce
No response
Affected Version(s)
2201.8.x
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: