Any uses lines must be at the top of the file

In 9.0, any use of the uses keyword to include types must appear at the top of the file below the package declaration, but not within method declarations. In previous releases, uses lines were sometimes permitted in method declarations. The application automatically upgrades some configuration data that is implemented as Gosu classes, such as rule set data.

For other code contexts, fix any compilation errors that relate to this change.