File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -649,7 +649,12 @@ struct CodingStackEntry {
649649
650650struct Test {
651651 var codingStack : [ CodingStackEntry ]
652- var codingPath : [ any CodingKey ] { codingStack. map ( \. key) }
652+ // CHECK-LABEL: sil hidden [ossa] @{{.*}}codingPathAny
653+ var codingPathAny : [ any CodingKey ] { codingStack. map ( \. key) }
654+ // CHECK: keypath $KeyPath<CodingStackEntry, URICoderCodingKey>, (root $CodingStackEntry; stored_property #CodingStackEntry.key : $URICoderCodingKey)
655+
656+ // CHECK-LABEL: sil hidden [ossa] @{{.*}}codingPathOpt
657+ var codingPathOpt : [ URICoderCodingKey ? ] { codingStack. map ( \. key) }
653658 // CHECK: keypath $KeyPath<CodingStackEntry, URICoderCodingKey>, (root $CodingStackEntry; stored_property #CodingStackEntry.key : $URICoderCodingKey)
654659}
655660
You can’t perform that action at this time.
0 commit comments