id<UIView> views = @[one, two, three];
NSInteger object = [views lastObject]; // Compiler will warn me that `views` stores only UIViews
How far would I have to go implement this? Does anybody have some experience with extending clang to support similar features?
Similar: nsmutablearray-force-the-array-to-hold-specific-object-type-only