[SR-7116] After capturing an implicitly unwrapped variable inside capture list it is not longer implicitly unwrapped optional #49664
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 4.0.3 (swiftlang-900.0.74.1 clang-900.0.39.2)
Additional Detail from JIRA
md5: bb5fc23bc41fe6ae57f1baf171e707e8
Issue Description:
The error:
The variable number has Int? type but optional has Int! type.
But in the same time the following code works:
The text was updated successfully, but these errors were encountered: