Skip to content

Commit 753474e

Browse files
Merge pull request #38281 from LucianoPAlmeida/SR-14533-test-case
2 parents 1d3eb30 + 748b18d commit 753474e

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

test/Constraints/members.swift

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -735,3 +735,14 @@ func rdar55369704() {
735735
_ = x - Int(s.value) // expected-error {{value of type 'S' has no member 'value'}}
736736
}
737737
}
738+
739+
// SR-14533
740+
struct SR14533 {
741+
var xs: [Int]
742+
}
743+
744+
func fSR14533(_ s: SR14533) {
745+
for (x1, x2) in zip(s.xs, s.ys) {
746+
// expected-error@-1{{value of type 'SR14533' has no member 'ys'}}
747+
}
748+
}

0 commit comments

Comments
 (0)