mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
This replaces some of the existing checks, and ensures that we don't emit coverage maps for property wrapper backing initializers that don't contain user code. rdar://99931619
23 lines
418 B
Swift
23 lines
418 B
Swift
// A secondary file for unmapped.swift that can contain profiled code.
|
|
|
|
@propertyWrapper
|
|
struct Wrapper<T> {
|
|
var wrappedValue: T
|
|
}
|
|
|
|
struct Projected<T> {
|
|
var value: T
|
|
}
|
|
|
|
@propertyWrapper
|
|
struct WrapperWithProjectedValue<T> {
|
|
var wrappedValue: T
|
|
init(projectedValue: Projected<T>) {
|
|
self.wrappedValue = projectedValue.value
|
|
}
|
|
var projectedValue: Projected<T> {
|
|
Projected(value: wrappedValue)
|
|
}
|
|
}
|
|
|