File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -2464,6 +2464,10 @@ void TypeChecker::addImplicitDynamicAttribute(Decl *D) {
2464
2464
return ;
2465
2465
2466
2466
if (auto *VD = dyn_cast<VarDecl>(D)) {
2467
+ // Don't turn stored into computed properties. This could conflict with
2468
+ // exclusivity checking.
2469
+ if (VD->hasStorage ())
2470
+ return ;
2467
2471
// Don't add dynamic to local variables.
2468
2472
if (VD->getDeclContext ()->isLocalContext ())
2469
2473
return ;
Original file line number Diff line number Diff line change @@ -66,7 +66,7 @@ public enum PublicEnumeration<Q> {
66
66
}
67
67
}
68
68
#elseif MODULENODYNAMIC
69
- public var public_global_var = " public_global_var "
69
+ public dynamic var public_global_var = " public_global_var "
70
70
71
71
public func public_global_func( ) -> String {
72
72
return " public_global_func "
You can’t perform that action at this time.
0 commit comments