We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fbb7c24 commit 983d1ddCopy full SHA for 983d1dd
test/Interpreter/switch.swift
@@ -222,4 +222,19 @@ SwitchTestSuite.test("TupleUnforwarding") {
222
}
223
224
225
+protocol P {}
226
+
227
+SwitchTestSuite.test("Protocol Conformance Check Leaks") {
228
+ do {
229
+ let x = LifetimeTracked(0)
230
+ let y = LifetimeTracked(1)
231
+ switch (x, y) {
232
+ case (is P, is P):
233
+ break
234
+ default:
235
236
+ }
237
238
+}
239
240
runAllTests()
0 commit comments