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 eca1c1f commit d8f3880Copy full SHA for d8f3880
test/Constraints/tuple.swift
@@ -304,3 +304,6 @@ let zeroTuple = (0,0)
304
305
if case (foo: let x, foo: let y) = zeroTuple { print(x+y) } // expected-error {{cannot create a tuple with a duplicate element label}}
306
// expected-warning@-1 {{'if' condition is always true}}
307
+
308
+enum BishBash { case bar(foo: Int, foo: String) }
309
+let f: BishBash = .bar(foo: 0, foo: "") // expected-error {{cannot create a tuple with a duplicate element label}}
0 commit comments