Files
swift-mirror/test/NameLookup/Inputs/custom_attrs_B.swift
Doug Gregor 6a40a3a8aa [SE-0289] Add support for @resultBuilder.
"Function builders" are being renamed to "result builders". Add the
corresponding `@resultBuilder` attribute, with `@_functionBuilder` as
an alias for it, Update test cases to use @resultBuilder.
2020-10-20 13:24:51 -07:00

14 lines
267 B
Swift

@propertyWrapper
public struct Wrapper<Value> {
public var wrappedValue: Value
public init(wrappedValue: Value) {
self.wrappedValue = wrappedValue
}
}
@resultBuilder
public struct Builder {
static func buildBlock<T>(_ component: T) -> T { component }
}