Open
Description
Description
The following code gives "error: no exact matches in call to initializer" when compiled in Embedded Swift mode, but no error when compiled in Full Swift.
_ = Int("42")
Reproduction
func f() {
_ = Int("42")
}
Expected behavior
It compiles and properly parses the String
into an Int
.
Environment
Swift Development Snapshot 2024-08-03
Additional information
No response