Skip to content

Commit a1dbf96

Browse files
committed
validation-test: Check in a variadic generics Sema crasher
1 parent 6e1cd3a commit a1dbf96

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
// RUN: not --crash %target-swift-frontend -target %target-swift-5.9-abi-triple -typecheck %s
2+
3+
// https://github.com/apple/swift/issues/78156
4+
5+
func f<each T>(_: repeat [each T]) -> (repeat [each T], Bool) {}
6+
let _ = f(f(f([4])))

0 commit comments

Comments
 (0)