[Bug]: The compiler crashes when a variable is passed dynamically to a TCP connection service initializer #43368
Labels
Area/BIR
Compiler BIR related issues #Compiler
Fix/Crash
All issues caused by NPE, CCE, etc
Team/CompilerFE
All issues related to Language implementation and Compiler, this exclude run times.
Type/Bug
Description
$title occurs when a variable is passed within a loop:
return new EchoService(port);
. However, the code compiles successfully if an integer literal is used:return new EchoService(1122);
.Crash Log
Steps to Reproduce
Compile the following Ballerina code.
Affected Version(s)
Ballerina 2201.10.0
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: