Skip to content

Commit 7f948af

Browse files
pteasimambrandonw
andauthored
added Self as default associatedtype value for TestDependencyKey.value (#1395)
* added Self as default associatedtype value for TestDependencyKey.value * Update Tests/ComposableArchitectureTests/DependencyKeyTests.swift Co-authored-by: Brandon Williams <[email protected]>
1 parent 335336e commit 7f948af

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/Dependencies/DependencyKey.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ extension DependencyKey {
4040
/// See ``DependencyKey`` to define a static, default value for the live application.
4141
public protocol TestDependencyKey {
4242
/// The associated type representing the type of the dependency key's value.
43-
associatedtype Value
43+
associatedtype Value = Self
4444
// NB: This associated type should be constrained to `Sendable` when this bug is fixed:
4545
// https://github.com/apple/swift/issues/60649
4646

0 commit comments

Comments
 (0)