On Thursday, 15 August 2019 at 01:55:17 UTC, Bert wrote:
void main() { class X { ... }
I would just make it `static class X` and then it shoudl work fine.
Won't be able to access main's local variables then though, but you could pass the necessary ones through the constructors or something.