File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -290,7 +290,7 @@ ConstructorDecl *swift::getOrCreateEffectiveMemberwiseInitializer(
290
290
for (auto *member : nominal->getMembers ()) {
291
291
auto var = dyn_cast<VarDecl>(member);
292
292
if (!var ||
293
- !var->isMemberwiseInitialized (/* preferDeclaredProperties= */ true ))
293
+ !var->isMemberwiseInitialized (/* preferDeclaredProperties*/ true ))
294
294
continue ;
295
295
accessLevel = std::min (accessLevel, var->getFormalAccess ());
296
296
}
Original file line number Diff line number Diff line change 1
1
// SWIFT_ENABLE_TENSORFLOW
2
2
// RUN: %target-swift-frontend -print-ast %s | %FileCheck %s
3
3
4
- // Test `Differentiable` derived conformances.
5
- // Verify access levels of synthesized `TangentVector` types and their memberwise initializers.
6
- // `TangentVector` memberwise initializer access level should match `TangentVector` access level.
4
+ // TF-1077: Verify access levels of `TangentVector` types and their memberwise
5
+ // initializers, synthesized during `Differentiable` derived conformances.
6
+
7
+ // `TangentVector` memberwise initializer access level should default to true,
8
+ // for usability.
7
9
8
10
public struct PublicStruct : Differentiable { }
9
11
internal struct InternalStruct : Differentiable { }
You can’t perform that action at this time.
0 commit comments