`type(of: s).foo()` gotcha

I asked a similar question a few years ago. See @Slava_Pestov's reply then: Calling type(of:) on an opaque function argument (some P) - #2 by Slava_Pestov

4 Likes