mirror of
https://github.com/apple/swift.git
synced 2026-01-07 22:52:31 +01:00
"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.
7 lines
228 B
Swift
7 lines
228 B
Swift
// RUN: %target-typecheck-verify-swift
|
|
|
|
@_functionBuilder // expected-warning{{'@_functionBuilder' has been renamed to '@resultBuilder'}}{{2-18=resultBuilder}}
|
|
struct MyBuilder {
|
|
static func buildBlock(_: Any...) -> Any { }
|
|
}
|