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 {
15761576bool PatternBindingEntry::hasInitStringRepresentation () const {
15771577 if (InitContextAndFlags.getInt ().contains (PatternFlags::IsText))
15781578 return !InitStringRepresentation.empty ();
1579- return getInit () && getInit ()->getSourceRange ().isValid ();
1579+ return getOriginalInit () && getOriginalInit ()->getSourceRange ().isValid ();
15801580}
15811581
15821582StringRef 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