Files
swift-mirror/test/Serialization/Inputs/def_property_delegates.swift
Doug Gregor 7092be6a28 [Property delegates] (De-)serialize property delegates attached to properties
Serialize the relationship between a property that has an attached delegate
and its backing variable, so deserialization can reestablish that link.

Fixes rdar://problem/50447022.
2019-05-05 21:44:54 -07:00

13 lines
214 B
Swift

@_propertyDelegate
public struct SomeDelegate<T> {
public var value: T
public init(initialValue: T) {
self.value = initialValue
}
}
public struct HasDelegates {
@SomeDelegate public var x: Int = 17
}