Skip to content

Optional<some Any> is transformed to some Any? which doesn't compile #586

@dnadoba

Description

@dnadoba
func foo(bar: Optional<some Any>) {}

is transformed to

func foo(bar: some Any?) {}

but afterwards no longer compiles.

It either needs braces:

func foo(bar: (some Any)?) {}

or kept as is.

Tested with latest main 8337523533bbd153cdac74c8fff4a1ac79a0b805

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions