Class inside a package

In reply to Ramyas:

*include "packageA.sv";* I think include should not end with a semicolon. Just remove the semicolon on this line and try again.