[SR-5876] Swift 4 no longer infers inout parameters #48446
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
compiler
The Swift compiler in itself
regression
swift 4.0
type checker
Area → compiler: Semantic analysis
Environment
Xcode 9.0 (9A235)
Apple Swift version 4.0 (swiftlang-900.0.65 clang-900.0.37)
Target: x86_64-apple-macosx10.9
Additional Detail from JIRA
md5: eede21d4c9a5d30d1daac160c51a12fd
Issue Description:
Swift 3.1 infers
inout
parameters correctly. For example:This correctly compiles and prints
45
. But Swift 4 complains instead with the errorThe text was updated successfully, but these errors were encountered: