Error "Outer Function Context is Needed" when class declared in unittest

Adam D Ruppe destructionator at gmail.com
Thu Jan 5 16:41:32 UTC 2023


On Thursday, 5 January 2023 at 16:38:49 UTC, Vijay Nayar wrote:
> Does that class inherit the scope of the function it is inside, 
> similar to how an inner class does with an outer class?

yup. They can see the local variables from the function.




More information about the Digitalmars-d-learn mailing list