After install V13.1 one of my scripts get broke in my Mac. Below is the core of the bug:
Module[{}, Return[1]; 2]
Return[1]
In the Wolfram Cloud we get the expected result.
Cross post in Stack Exchange
Here is a duplicate question on MMa.SE with a detailed answer from Leonid Shifrin:
Read also this (the last section "Why did Return appear?") and this.
Interesting! It works at Wolfram Cloud
With versions 5.2, 8.0.4 and 12.3.1 on Windows 10 x64 I get the same result:
I can confirm that this bug also occurs on 13.0.0 for Linux (64-bit), see this attached screenshot: