Marc Schütz:
The error message is confusing, though. main is not a nested function, rather it's a function _containing_ a nested class...
If you don't like the error message then I suggest to open in Bugzilla a diagnostic bug report (if you want with "minor" importance).
Bye, bearophile
