Overriding the parameter in a package using virtual class

In reply to noel:

I forgot to add that the statement

import test_pkg::override_params#(.ARRAY_SIZE(NUM_MASTERS))::*;

is not acceptable by the compiler.