Skip to content

Option.apply should eliminate Nullable type #7869

Open
@Katrix

Description

@Katrix

minimized code

val maybeNull: String | Null = null
val optionStr: Option[String] = Option(maybeNull)

Returns the error

Found:    (maybeNull : String | Null)
Required: String

expectation

It compiles

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions