mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
convert parseType to take a DiagID.
Swift SVN r762
This commit is contained in:
@@ -133,7 +133,7 @@ bool Parser::parseValueSpecifier(Type &Ty, NullablePtr<Expr> &Init,
|
||||
|
||||
// Parse the type if present.
|
||||
if (consumeIf(tok::colon) &&
|
||||
parseType(Ty, "expected type in var declaration"))
|
||||
parseType(Ty, diags::expected_type))
|
||||
return true;
|
||||
|
||||
// Parse the initializer, if present.
|
||||
|
||||
Reference in New Issue
Block a user