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

Commit
6 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/2528469
Author
Committer
Loading