What does .empty do?

My guess would be that you didn’t actually initialize self. (But I can’t know for sure without seeing more code)
Note that Allocation is not Initialization.

6 Likes