[SR-11488] Implicit inout allowed with expression pattern matching #53888
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
compiler
The Swift compiler in itself
type checker
Area → compiler: Semantic analysis
Environment
Swift version 5.1-dev (LLVM c5340df2d1, Swift 0cbbb21723)
Target: x86_64-apple-darwin18.5.0
Additional Detail from JIRA
md5: 1c04b5748355a33fd8b2071e29f6d302
Issue Description:
The following is legal:
But we probably shouldn't allow the pattern
x
to be used as an implicitinout
argument. This is source breaking, but I would hope nobody is relying on this.The text was updated successfully, but these errors were encountered: