Closed miegir closed 2 months ago
For me (net8) the compiler runs (with similar error messages) and finishes normally. Which SDK / compiler / TFM are you using?
Actually, after updating from 8.0.206 to 8.0.302 I have exactly the behavior described in the OP.
Repro steps
dotnet build
.In fact, any recursive inline function can be declared and then invoked somewhere.
Expected behavior
Compiler is expected to output some error because inline rec functions are not allowed and quit.
Actual behavior
Compiler outputs several errors and warnings and then hangs with continuously increasing memory consumption. Compiler output before hang (with paths stripped):
N.B. This bug is contrived of course. I never thought of writing such code in real applications.