[SR-11738] PropertyWrapper with Optional type can be used with non-optional type, results in Optional type #54145
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
compiler
The Swift compiler in itself
property wrappers
Feature: property wrappers
Environment
Apple Swift version 5.1.2 (swiftlang-1100.0.278 clang-1100.0.33.9)
Additional Detail from JIRA
md5: 44cdbf3385c675c2ca0b4f71f6fbd192
duplicates:
Issue Description:
PropertyWrapper with Optional type can be used with non-optional type, results in Optional type
It looks like a bug to me. Compiler should throw an error about type mismatch for String and Optional<String>, shouldn't it?
The text was updated successfully, but these errors were encountered: