Skip to content

Commit 748b18d

Browse files
[Sema][NFC] Add regression test for SR-14533
1 parent db6ea99 commit 748b18d

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)