Files
swift-mirror/test/NameLookup/Inputs/custom_attrs_A.swift
Pavel Yaskevich 6b323f1663 [BuilderTransform] Verify that builder type has at least one accessible build{Partial}Block
Check accessibility of all build{Partial}Block overloads and
diagnose if none of them are as accessible as type, otherwise
swift interfaces could end up with invalid result builder
declarations when type is public and all builder methods are
internal.

Resolves: rdar://104384604
2023-03-08 12:46:50 -08:00

14 lines
274 B
Swift

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