E2009 Parse Errors

using-after-declarations

using statement must come first

When this occurs

`using` after other declarations

Example error message

error[E2009]: file-scoped 'using' must come before all declarations

How to fix

Move your `using` statement to the top of the file, before any variable or function declarations.

Related errors