No, allora è solo il compilatore che si incarta, e crede che nel file as ci debba stare una Classe, e visto che il codice non è conforme...