mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[Sema] Re-enable placeholder type parsing and folding
This commit is contained in:
@@ -152,10 +152,6 @@ static ParserStatus parseDefaultArgument(
|
||||
/// Determine whether we are at the start of a parameter name when
|
||||
/// parsing a parameter.
|
||||
bool Parser::startsParameterName(bool isClosure) {
|
||||
// '_' cannot be a type, so it must be a parameter name.
|
||||
if (Tok.is(tok::kw__))
|
||||
return true;
|
||||
|
||||
// To have a parameter name here, we need a name.
|
||||
if (!Tok.canBeArgumentLabel())
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user