[SR-10757] Type Inference Failure Around Float/Integer Literals and Optionals #53147
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 5.1
Additional Detail from JIRA
md5: 42e2e8205935be068d993c032947aa28
Issue Description:
Paste the following into a playground:
Gives you the following error:
Wrapping
1.0
or-1
in an explicitOptional
, or usingas
fixes.The text was updated successfully, but these errors were encountered: