Skip to content

Commit 2b30f0f

Browse files
committed
[test] Add extra variadic generic test
1 parent 4573ba7 commit 2b30f0f

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

Tests/SwiftParserTest/Types.swift

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -354,5 +354,13 @@ final class TypeParameterPackTests: XCTestCase {
354354
}
355355
""")
356356
}
357+
func testParameterPacks28() throws {
358+
// We allow whitespace between the generic parameter and the '...', this is
359+
// consistent with regular variadic parameters.
360+
AssertParse(
361+
"""
362+
func f1<T ...>(_ x: T ...) -> (T ...) {}
363+
""")
364+
}
357365
}
358366

0 commit comments

Comments
 (0)