File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -66,8 +66,17 @@ public struct ObjectIdentifier: Sendable {
66
66
self . _value = unsafe unsafeBitCast( x, to: Builtin . RawPointer. self)
67
67
}
68
68
69
+ /// Creates an instance that uniquely identifies the given metatype.
70
+ ///
71
+ /// - Parameters:
72
+ /// - x: A metatype.
69
73
@_alwaysEmitIntoClient
70
- public init ( _ x: any ( ~ Copyable & ~ Escapable) . Type) {
74
+ @_disfavoredOverload
75
+ public init < T: ~ Copyable & ~ Escapable> ( _ x: T . Type ) {
76
+ // FIXME: This should rather use an existential:
77
+ // FIXME: init(_ x: any (~Copyable & ~Escapable).Type)
78
+ // FIXME: Unfortunately, that syntax does not survive into the
79
+ // FIXME: swiftinterface. rdar://139465298
71
80
self . _value = unsafeBitCast ( x, to: Builtin . RawPointer. self)
72
81
}
73
82
}
You can’t perform that action at this time.
0 commit comments