Skip to content

Embedded Swift: Int Parsing #75730

@michael-jan

Description

@michael-jan

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

No one assigned

    Labels

    embeddedEmbedded SwiftnumericsArea → standard library: Numeric APIstandard libraryArea: Standard library umbrella

    Type

    Projects

    Status

    Todo

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions