why local class cannot have static member?