mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[Syntax] Parse associatedtype declaration
Also, added generic where clause to typealias declaration.
This commit is contained in:
@@ -106,7 +106,7 @@ TEST(DeclSyntaxTests, TypealiasMakeAPIs) {
|
||||
auto TypeInit = SyntaxFactory::makeTypeInitializerClause(Assignment,
|
||||
Array_Int);
|
||||
SyntaxFactory::makeTypealiasDecl(None, None, Typealias,
|
||||
Subsequence, GenericParams, TypeInit)
|
||||
Subsequence, GenericParams, TypeInit, None)
|
||||
.print(OS);
|
||||
ASSERT_EQ(OS.str().str(),
|
||||
"typealias MyCollection<Element> = Array<Element>");
|
||||
|
||||
Reference in New Issue
Block a user