Skip to content

Commit be39620

Browse files
committed
Array, Set are Swift, not Foundation
... but they might be re-exported by Foundation?
1 parent 219a7ae commit be39620

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Sources/ManagedModelMacros/Utilities/AttributeTypes.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,9 @@ private let toOneRelationshipTypes : Set<String> = [
4444
]
4545
private let toManyRelationshipTypes : Set<String> = [
4646
// Foundation
47-
"Array", "Foundation.Array",
47+
"Array", "Swift.Array", "Foundation.Array",
4848
"NSArray", "Foundation.NSArray",
49-
"Set", "Foundation.Set",
49+
"Set", "Swift.Set", "Foundation.Set",
5050
"NSSet", "Foundation.NSSet",
5151
"NSOrderedSet", "Foundation.NSOrderedSet"
5252
]

Sources/ManagedModels/PersistentModel/PropertyMetadata.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ public extension NSManagedObjectModel {
1313
* All (code defined) properties of the ``NSManagedObjectModel`` are stored
1414
* in the `schemaMetadata` static property.
1515
*/
16-
struct PropertyMetadata: @unchecked Sendable {
16+
struct PropertyMetadata: @unchecked Sendable {
1717

1818
/// The name of the property instance variable, e.g. `street`.
1919
public let name : String

0 commit comments

Comments
 (0)