Skip to content

Commit 0ba003d

Browse files
committed
[Test] Adds a test case
1 parent 357c7ef commit 0ba003d

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

test/decl/var/property_wrappers.swift

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1519,3 +1519,19 @@ func test_missing_method_with_lvalue_base() {
15191519
}
15201520
}
15211521
}
1522+
1523+
// SR-11288
1524+
// Look into the protocols that the type conforms to
1525+
1526+
@propertyWrapper
1527+
struct SR_11288_S {
1528+
var wrappedValue: Int
1529+
}
1530+
1531+
protocol SR_11288_P {
1532+
typealias Wrapper = SR_11288_S
1533+
}
1534+
1535+
struct SR_11288_C: SR_11288_P {
1536+
@Wrapper var answer = 42 // Okay
1537+
}

0 commit comments

Comments
 (0)