File tree Expand file tree Collapse file tree 2 files changed +14
-1
lines changed
validation-test/Serialization Expand file tree Collapse file tree 2 files changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -1576,7 +1576,7 @@ SourceRange PatternBindingEntry::getSourceRange(bool omitAccessors) const {
1576
1576
bool PatternBindingEntry::hasInitStringRepresentation () const {
1577
1577
if (InitContextAndFlags.getInt ().contains (PatternFlags::IsText))
1578
1578
return !InitStringRepresentation.empty ();
1579
- return getInit () && getInit ()->getSourceRange ().isValid ();
1579
+ return getOriginalInit () && getOriginalInit ()->getSourceRange ().isValid ();
1580
1580
}
1581
1581
1582
1582
StringRef PatternBindingEntry::getInitStringRepresentation (
Original file line number Diff line number Diff line change
1
+ // RUN: %empty-directory(%t)
2
+ // RUN: %target-swift-frontend -emit-module %s
3
+
4
+ @propertyWrapper
5
+ public struct TestWrapper {
6
+ public var wrappedValue : Int
7
+ public init ( wrappedValue: Int ) { self . wrappedValue = wrappedValue }
8
+ }
9
+
10
+ @frozen public struct Test {
11
+ @TestWrapper public var x : Int = 42
12
+ }
13
+
You can’t perform that action at this time.
0 commit comments