Skip to content

Commit ff56f42

Browse files
authored
Merge pull request swiftlang#37195 from ktoso/wip-remove-cmmeneted
[cherry-pick 5.5][TaskLocal] remove commented out code
2 parents b244fa6 + 859b5c8 commit ff56f42

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

lib/Sema/TypeCheckPropertyWrapper.cpp

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -405,13 +405,6 @@ PropertyWrapperTypeInfoRequest::evaluate(
405405

406406
result.requireNoEnclosingInstance =
407407
enclosingInstanceTypeIsNever(ctx, result.enclosingInstanceWrappedSubscript);
408-
// if (requireNoEnclosingInstance) { // && !valueVar->isStatic()) {
409-
// // this means that the property wrapper must be declared on a static property
410-
// valueVar->diagnose(
411-
// diag::property_wrapper_var_must_be_static, valueVar->getName());
412-
// return PropertyWrapperTypeInfo();
413-
// result
414-
// }
415408

416409
bool hasInvalidDynamicSelf = false;
417410
if (result.projectedValueVar &&

0 commit comments

Comments
 (0)