We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 3f893dd + 6094f73 commit 5bbba40Copy full SHA for 5bbba40
lib/Sema/TypeCheckPropertyWrapper.cpp
@@ -405,13 +405,6 @@ PropertyWrapperTypeInfoRequest::evaluate(
405
406
result.requireNoEnclosingInstance =
407
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
-// }
415
416
bool hasInvalidDynamicSelf = false;
417
if (result.projectedValueVar &&
0 commit comments