mirror of
https://github.com/apple/swift-nio
synced 2026-11-25 04:47:49 +00:00
Motivation: In Swift 4.2 you'll get a warning if you use an internal typealias from an `@inlinable`/`@_inlineable` function. To fix it, you usually make it `@usableFromInline`/`@_versioned`. Swift 4.0 however doesn't support those attributes for typealiases. The workaround is to just make the typealias public (and underscored). Modifications: make `ByteBuffer.Capacity` and `ByteBuffer.Index` underscored and public Result: compiles warning-free on Swift 4.0, 4.1 and 4.2