File tree Expand file tree Collapse file tree 1 file changed +28
-0
lines changed Expand file tree Collapse file tree 1 file changed +28
-0
lines changed Original file line number Diff line number Diff line change
1
+ // RUN: %target-swift-frontend -typecheck -disable-availability-checking -dump-ast %s | %FileCheck %s
2
+
3
+ struct Transaction {
4
+ var state : Int ?
5
+ }
6
+
7
+ @propertyWrapper
8
+ struct Wrapper < Value> {
9
+ var wrappedValue : Value
10
+
11
+ init ( wrappedValue: Value ,
12
+ reset: @escaping ( Value , inout Transaction ) -> Void ) {
13
+ self . wrappedValue = wrappedValue
14
+ }
15
+ }
16
+
17
+ // rdar://problem/59685601
18
+ // CHECK-LABEL: R_59685601
19
+ struct R_59685601 {
20
+ // CHECK: tuple_expr implicit type='(wrappedValue: String, reset: (String, inout Transaction) -> Void)'
21
+ // CHECK-NEXT: opaque_value_expr implicit type='String'
22
+ // CHECK-NEXT: string_literal_expr type='String'
23
+ @Wrapper ( reset: { value, transaction in
24
+ transaction. state = 10
25
+ } )
26
+ private var value = " hello "
27
+ }
28
+
You can’t perform that action at this time.
0 commit comments