mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
`participatesInInference` is now always true for a non-empty body, remove it along with the separate type-checking logic such that empty bodies are type-checked together with the context.
16 lines
379 B
Swift
16 lines
379 B
Swift
// RUN: %target-typecheck-verify-swift -target %target-cpu-apple-macosx10.15 -swift-version 5
|
|
// REQUIRES: objc_interop
|
|
// REQUIRES: OS=macosx
|
|
|
|
import SwiftUI
|
|
|
|
struct MyView: View {
|
|
var data: [Transaction]
|
|
|
|
var body: some View {
|
|
Table(self.data) {
|
|
// expected-error@-1 {{expected expression in result builder 'TableColumnBuilder'}} {{23-23=<#result#>}}
|
|
}
|
|
}
|
|
}
|