mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Looks like a think-o; even if we see an address-only binding in a shared pattern block, we still expect bb args in the lowered basic block for anything that comes after it. rdar://problem/53956564
14 lines
231 B
Swift
14 lines
231 B
Swift
// RUN: %target-swift-emit-silgen %s
|
|
|
|
// rdar://problem/53956564
|
|
|
|
func foo<T>(x: Int, y: T, z: Int) {
|
|
switch (x, y, z) {
|
|
case (let xx, let yy, let zz), (let xx, let yy, let zz):
|
|
_ = xx
|
|
_ = yy
|
|
_ = zz
|
|
break
|
|
}
|
|
}
|