Skip to content

Commit 7dc0370

Browse files
authored
Remove outdated warmning. (#374)
1 parent 77bd90b commit 7dc0370

File tree

1 file changed

+0
-20
lines changed

1 file changed

+0
-20
lines changed

Sources/DependenciesMacros/Macros.swift

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -111,26 +111,6 @@
111111
/// and does not need to signify a real value. For example, if the endpoint returns a boolean, you
112112
/// can return `false`, or if it returns an array, you can return `[]`.`
113113
///
114-
/// > Warning: Due to a [bug in the Swift compiler](https://github.com/apple/swift/issues/71070),
115-
/// > endpoints that are not throwing will not emit a test failure when invoked. This applies to
116-
/// > dependencies with endpoints like this:
117-
/// >
118-
/// > ```swift
119-
/// > @DependencyClient
120-
/// > struct NumberFetcher {
121-
/// > var get: () async -> Int = { 42 }
122-
/// > }
123-
/// > ```
124-
/// >
125-
/// > The workaround is to invoke `XCTFail` directly in the closure:
126-
/// >
127-
/// > ```swift
128-
/// > @DependencyClient
129-
/// > struct NumberFetcher {
130-
/// > var get: () async -> Int = { XCTFail("\(Self.self).get"); return 42 }
131-
/// > }
132-
/// > ```
133-
///
134114
/// [designing-dependencies]: https://swiftpackageindex.com/pointfreeco/swift-dependencies/main/documentation/dependencies/designingdependencies
135115
/// [separating-interface-implementation]: https://swiftpackageindex.com/pointfreeco/swift-dependencies/main/documentation/dependencies/livepreviewtest#Separating-interface-and-implementation
136116
@attached(member, names: named(init))

0 commit comments

Comments
 (0)