-
Notifications
You must be signed in to change notification settings - Fork 10.5k
Open
Labels
bugA deviation from expected or documented behavior. Also: expected but undesirable behavior.A deviation from expected or documented behavior. Also: expected but undesirable behavior.embeddedEmbedded SwiftEmbedded Swiftstandard libraryArea: Standard library umbrellaArea: Standard library umbrellaswift 6.1unexpected errorBug: Unexpected errorBug: Unexpected error
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
bugA deviation from expected or documented behavior. Also: expected but undesirable behavior.A deviation from expected or documented behavior. Also: expected but undesirable behavior.embeddedEmbedded SwiftEmbedded Swiftstandard libraryArea: Standard library umbrellaArea: Standard library umbrellaswift 6.1unexpected errorBug: Unexpected errorBug: Unexpected error