Skip to content

Commit 29f5915

Browse files
authored
Merge pull request swiftlang#75012 from hamishknight/another-pr-dont-worry-about-it
[test] Re-enable an index test
2 parents 5ad2291 + 43abe7f commit 29f5915

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

test/Index/index_keypath_member_lookup.swift

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,8 +120,10 @@ func testWrite1(r: inout Lens<Rectangle>, p: Lens<Point>, a: inout Lens<[Int]>)
120120
// CHECK: [[WBR_LINE:[0-9]+]]:17 | instance-property/Swift | y | [[PY_USR]] | Ref,Writ,RelCont | rel: 1
121121
// CHECK: [[WBR_LINE:[0-9]+]]:17 | instance-method/acc-set/Swift | setter:y | [[PY_SET_USR]] | Ref,Call,Impl,RelCall,RelCont | rel: 1
122122

123-
// FIXME: crashes typechecker rdar://problem/49533404
124-
// a[0] = Lens(1)
123+
a[0] = Lens(1)
124+
// => implicit dynamicMember subscript (a)
125+
// CHECK: [[@LINE-2]]:4 | instance-property/subscript/Swift | subscript(dynamicMember:) | [[SUB_USR]] | Ref,Writ,Impl,RelCont | rel: 1
126+
// CHECK: [[@LINE-3]]:4 | instance-method/acc-set/Swift | setter:subscript(dynamicMember:) | [[SUB_SET_USR]] | Ref,Call,Impl,RelCall,RelCont | rel: 1
125127
}
126128

127129
func testExplicit(r: Lens<Rectangle>, a: Lens<[Int]>) {

0 commit comments

Comments
 (0)