assert in unittest has access to private member?
a11e99z
black80 at bk.ru
Sun Jun 30 17:47:27 UTC 2019
On Sunday, 30 June 2019 at 17:24:03 UTC, Robert M. Münch wrote:
> I have a case, with templates, where an assert in a unittest
> can access a private memember and I don't know how this can
> happen.
>
> Before trying to creat an equivalent case, I want to
> cross-check, if assert has special semantics in a unittest so
> that it can access private memembers?
Private means that only members of the enclosing class can access
the member, or
vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
members and functions in the same module as the enclosing class.
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
did you take it into account?
More information about the Digitalmars-d-learn
mailing list