-
Notifications
You must be signed in to change notification settings - Fork 10.5k
Open
Labels
embeddedEmbedded SwiftEmbedded SwiftnumericsArea → standard library: Numeric APIArea → standard library: Numeric APIstandard libraryArea: Standard library umbrellaArea: Standard library umbrella
Milestone
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
Metadata
Metadata
Assignees
Labels
embeddedEmbedded SwiftEmbedded SwiftnumericsArea → standard library: Numeric APIArea → standard library: Numeric APIstandard libraryArea: Standard library umbrellaArea: Standard library umbrella
Type
Projects
Status
Todo