You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
In the following code the program is not terminated correctly. The code works correctly till the end but the program hangs at the
end.
To Reproduce
import extensions;
class IntWrapper
{
int value;
constructor(int value)
{
this value := value
}
int cast()
= value;
}
class MyClass
{
add(int n)
{
console.printLine("add int:(",n,")")
}
add(string s)
{
console.printLine("add literal:(",s,")")
}
add(o)
{
if (o; is int n) {
^ self.add(n);
};
console.printLine("unsupported")
}
}
public program()
{
var o := new MyClass();
var wrapper := new IntWrapper(4);
o.add("string");
o.add(2);
o.add(wrapper);
o.add(2.3); // when this line is commented, the code works correctly and ends without a problem
}
Expected behavior
The code must end without hanging indefinitely
The text was updated successfully, but these errors were encountered:
* #562 : refactoring before adding support for nullable
* #562 : assigning nillable to struct
* #661 : try block with ret expression must have an extra block where the previous catch block is restored and jumped to the end
* MT : fixing an issue with infinite GC wait
* [FIXED] exception handling in a thread
* [FIXED] event handler
Describe the bug
In the following code the program is not terminated correctly. The code works correctly till the end but the program hangs at the
end.
To Reproduce
Expected behavior
The code must end without hanging indefinitely
The text was updated successfully, but these errors were encountered: