mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
17 lines
435 B
Swift
17 lines
435 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 {{missing argument for parameter #1 in call}}
|
|
// expected-error@-2 {{cannot infer return type of empty closure}} {{23-23=<#result#>}}
|
|
}
|
|
}
|
|
}
|