<div dir="ltr"><div style="font-family:monospace" class="gmail_default">As a side note, here is a related post I made that captures a very similar problem, but for enums and lambdas instead of records.</div><div style="font-family:monospace" class="gmail_default"><br></div><div style="font-family:monospace" class="gmail_default"><a href="https://stackoverflow.com/questions/75072937/why-does-my-lambda-get-illegal-forward-reference-but-my-anonymous-class-does-no">https://stackoverflow.com/questions/75072937/why-does-my-lambda-get-illegal-forward-reference-but-my-anonymous-class-does-no</a></div></div>