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 {
649
649
650
650
struct Test {
651
651
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) }
653
658
// CHECK: keypath $KeyPath<CodingStackEntry, URICoderCodingKey>, (root $CodingStackEntry; stored_property #CodingStackEntry.key : $URICoderCodingKey)
654
659
}
655
660
You can’t perform that action at this time.
0 commit comments