You can check by pasting the code into a simple project and then using Xcode 8's memory graph debugger.

Copy/paste this compilable version of your code then build and run. It'll run forever and do nothing. Click the little object graph debugger icon (the three circles with lines in them) and it'll show you that you have a strong reference from the instance of sub back to itself via the block.