Skip to content

Commit 26fbee2

Browse files
committed
Remove _typeByName lookup of _FoundationNSNumberInitializer (swiftlang#817)
1 parent 4d1dfb4 commit 26fbee2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Sources/FoundationEssentials/FileManager/FileManager+Files.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,8 +120,8 @@ public protocol _NSNumberInitializer {
120120

121121
@_spi(SwiftCorelibsFoundation)
122122
dynamic public func _nsNumberInitializer() -> (any _NSNumberInitializer.Type)? {
123-
// TODO: return nil here after swift-corelibs-foundation begins dynamically replacing this function
124-
_typeByName("Foundation._FoundationNSNumberInitializer") as? any _NSNumberInitializer.Type
123+
// Dynamically replaced by swift-corelibs-foundation
124+
return nil
125125
}
126126
#endif
127127

0 commit comments

Comments
 (0)