On 2/9/13, kenji hara <[email protected]> wrote: > It's introduced by fixing issue 5385, so at least not a regression
Perhaps we could relax the rule and allow bypassing access restrictions when using typeof(). There are similar bugs opened about purity, where e.g. you can't check the length of an impure static array in a pure function (even though it will never change length). I think we'll have to define in the spec exactly what is and isn't allowed and then implement this properly, otherwise we risk fixing bug for person #1 which ends up breaking code for person #2 (which is exactly what happened with fixing 5385).
