mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
We should continue to use the public pre-specialized entry point from another module. But not block other uses of generic specializations.
19 lines
313 B
Swift
19 lines
313 B
Swift
|
|
@inline(never)
|
|
@_semantics("optimize.no.crossmodule")
|
|
private func printit(_ x: Any) {
|
|
print(x)
|
|
}
|
|
|
|
@inline(never)
|
|
public func genericSubmoduleFunc<T>(_ t: T) {
|
|
printit(t)
|
|
}
|
|
|
|
@_specialize(exported: true, where T == Int)
|
|
@inlinable
|
|
@inline(never)
|
|
public func dontBlockSerialization<T>(_ t: T) {
|
|
print(t)
|
|
}
|