http://llvm.org/bugs/show_bug.cgi?id=10164
Ted Kremenek <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |INVALID --- Comment #3 from Ted Kremenek <[email protected]> 2011-12-06 16:03:22 CST --- I dont' see the issue here. 'self' has type 'Foo*'. With the instancetype feature, the method should return 'Foo*', and thus no warning should be issued. Without the instancetype feature (without the 'init' attribute), this is still correct behavior, because 'Foo*' can be matched to 'id'. 'id' trumps the type checking. That's how Objective-C has worked for a long time. -- Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. _______________________________________________ LLVMbugs mailing list [email protected] http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs
