swift
787736d6 - [Sema] Suggest #selector(self.foo) instead of #selector(TypeName.foo) when possible.

Commit
8 years ago
[Sema] Suggest #selector(self.foo) instead of #selector(TypeName.foo) when possible. When inside a declaration or extension of TypeName, humans usually don't write the full typename like #selector(TypeName.foo), but instead prefer the neater form #selector(self.foo). The compiler has enough information to do this too. Fixes rdar://problem/25284692 .
Author
Committer
Parents
Loading