mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
The restriction that default arguments be disallowed from accessing `@usableFromInline` decls is overbearing for library developers who need to write non-trivial code to compute a default value, since it forces them to either write a verbose closure inline in the function signature or expose a `public` helper function which unnecessarily expands API surface. A `@usableFromInline` function a more reasonable way to encapsulate a verbose default value computation. This reverses the semantic changes included in https://github.com/apple/swift/pull/15666. Resolves rdar://112093794.
5.0 KiB
5.0 KiB