Skip to content

Commit e178bf2

Browse files
author
Nathan Hawes
authored
Merge pull request #19776 from nathawes/indexing-crash-test-case
[IDE] Add test case for already fixed crash in SourceEntityWalker
2 parents 6a0fd51 + 660e900 commit e178bf2

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)