Fixup diagnostics around type(of:) and dynamicType handling

Be laxer about the parsing for type(of:) so as not to get in the way of
other declarations that may use ‘type’ as their base name.
This commit is contained in:
Robert Widmann
2016-07-30 02:01:05 -07:00
parent 4e5665a8bd
commit 9c83e7223e
6 changed files with 75 additions and 25 deletions

View File

@@ -36,7 +36,6 @@ bool swift::canBeArgumentLabel(StringRef identifier) {
bool swift::canBeMemberName(StringRef identifier) {
return llvm::StringSwitch<bool>(identifier)
.Case("dynamicType", false)
.Case("init", false)
.Case("Protocol", false)
.Case("self", false)