/versionsafe

Flags implicit overrides.

/versionsafe[+ | -]

+| -

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.

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()
{
}
}

Compile in.js and have the compiler generate errors if it finds an implicit method override.:

jsc /versionsafe in.js
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2015 Microsoft