We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9c9af90 commit cc11e19Copy full SHA for cc11e19
validation-test/Sema/SwiftUI/issue-59716.swift
@@ -0,0 +1,31 @@
1
+// RUN: %target-typecheck-verify-swift -target %target-cpu-apple-macosx10.15 -swift-version 5 -enable-experimental-feature ResultBuilderASTTransform
2
+// REQUIRES: OS=macosx
3
+
4
+import SwiftUI
5
6
+protocol TestLayout {}
7
+extension TestLayout {
8
+ func callAsFunction<V: View>(_ f: () -> V) -> some View {
9
+ return f()
10
+ }
11
+}
12
+struct EqualWitdthHStack : TestLayout {}
13
+extension EqualWitdthHStack: View {
14
+ var body : some View {
15
+ Spacer()
16
17
18
19
+struct EmptyView: View {
20
21
22
23
24
25
+struct MyView: View {
26
27
+ EqualWitdthHStack {
28
+ EmptyView()
29
30
31
0 commit comments