Flags implicit overrides.
/versionsafe[+ | -] |
Arguments
- +| -
-
By default, /versionsafe- is in effect and the compiler will not generate an error if it finds an implicit method override. /versionsafe+, which is the same as /versionsafe, causes the compiler to generate errors for implicit method overrides.
Remarks
Use the hide or override keywords to explicitly indicate the override status of a method. For example, the following code will generate an error when compiled with /versionsafe:
| В | Copy Code |
|---|---|
class c
{
function f()
{
}
}
class d extends c
{
function f()
{
}
} | |
Example
Compile in.js and have the compiler generate errors if it finds an implicit method override.:
| В | Copy Code |
|---|---|
jsc /versionsafe in.js | |
See Also
Ajax toolkit
Ajax website