Skip to content

Commit a8644f5

Browse files
author
Nathan Hawes
committed
[IDE] Add test case for already fixed crash in SourceEntityWalker
Test case for rdar://problem/45039252 that was already fixed by a8136a2
1 parent 1614b71 commit a8644f5

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

test/Index/invalid_code.swift

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,12 @@
33
// CHECK: [[@LINE+1]]:8 | struct/Swift | Int | {{.*}} | Ref | rel: 0
44
var _: Int { get { return 1 } }
55

6+
func test() {
7+
for o in allObjects {
8+
_ = o.something // don't crash
9+
}
10+
}
11+
612
class CrashTest {
713
var something = 0
814
func returnSelf(_ h: [AnyHashable: Any?]) -> CrashTest {

0 commit comments

Comments
 (0)