/versionsafe
This documentation is archived and is not being maintained.

/versionsafe

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:

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.:

jsc /versionsafe in.js

See Also

JScript Compiler Options

Show:
© 2016 Microsoft