Skip to content

Commit 06e84d1

Browse files
committed
Add a testcase from rdar://19558785, which got fixed along the way.
1 parent 679853d commit 06e84d1

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

test/NameBinding/name-binding.swift

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -221,3 +221,11 @@ struct Matrix4<T: FloatingPoint> {
221221
}
222222
}
223223

224+
// <rdar://problem/19558785> for-in collection/where expressions are parsed with pattern variables in scope
225+
func r19558785() {
226+
let b = 10
227+
for b in 0...b {
228+
b
229+
}
230+
}
231+

0 commit comments

Comments
 (0)