File tree Expand file tree Collapse file tree 2 files changed +24
-0
lines changed
test/Parse/ConditionalCompilation Expand file tree Collapse file tree 2 files changed +24
-0
lines changed Original file line number Diff line number Diff line change @@ -282,6 +282,14 @@ namespace {
282
282
for (auto condition : configsToResolve) {
283
283
R.resolveClausesAndInsertMembers (IDC, condition);
284
284
}
285
+ } else if (auto *PBD = dyn_cast<PatternBindingDecl>(D)) {
286
+ PBD->walk (R.NDF );
287
+ for (unsigned i = 0 , e = PBD->getNumPatternEntries (); i != e; ++i) {
288
+ if (auto e = PBD->getInit (i)) {
289
+ PBD->setInit (i,
290
+ e->walk (const_cast <ASTWalker&>(R.getClosureFinder ())));
291
+ }
292
+ }
285
293
}
286
294
return true ;
287
295
}
Original file line number Diff line number Diff line change @@ -94,3 +94,19 @@ func performPerOS() -> Int {
94
94
return performFoo ( withX: value, andY: value)
95
95
}
96
96
#endif
97
+
98
+ let osName : String = {
99
+ #if os(iOS)
100
+ return " iOS "
101
+ #elseif os(watchOS)
102
+ return " watchOS "
103
+ #elseif os(tvOS)
104
+ return " tvOS "
105
+ #elseif os(OSX)
106
+ return " OS X "
107
+ #elseif os(Linux)
108
+ return " Linux "
109
+ #else
110
+ return " Unknown "
111
+ #endif
112
+ } ( )
You can’t perform that action at this time.
0 commit comments