Skip to content

Commit 974fa39

Browse files
committed
[test] Add extra variadic generic test
1 parent d82e748 commit 974fa39

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

test/Parse/type_parameter_packs.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,7 @@ func quux<T...: P>(_ x: T...) {}
3030
func foobar<T, U, V...>(x: T, y: U, z: V...) { }
3131
func foobaz<T, U..., V>(x: T, y: U..., z: V) { }
3232
func fooqux<T..., U..., V...>(x: T..., y: U..., z: V...) { }
33+
34+
// We allow whitespace between the generic parameter and the '...', this is
35+
// consistent with regular variadic parameters.
36+
func withWhitespace<T ...>(_ x: T ...) -> (T ...) {}

0 commit comments

Comments
 (0)