[SR-14524] The inferred type of integer literals changes between Swift 5.3 and 5.4 #56876
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
I'm using Xcode 12.5 beta 3 and the Xcode 12.5 RC, which ship with:
The code above compiles fine with the beta and fails to compile with the RC.
Additional Detail from JIRA
md5: 279060c658586dc4c14273ffff7679d7
Issue Description:
Consider the following code:
In Swift 5.3 this code fails to compile with
However, this code compiles correctly in Swift 5.4. I am unsure if this change is intentional (as a bugfix?) but I was asked to report it here just in case.
The text was updated successfully, but these errors were encountered: