The code declares a function, variable, or constant inside a package. Only classes and interfaces can be defined in a package.
To correct this error
-
Remove all definitions in the package that are not for a class or interface.
See Also
Reference
package StatementConcepts
Other Resources
JScript ReferenceJScript Objects