Skip to content

Weird behavior with pattern matching. #4935

Closed
@sir-wabbit

Description

@sir-wabbit
object Foo {
  val (A, B) = () 
}

Compiles fine even though neither A nor B are defined.

object Foo {
  val (A, b) = ()
}

Doesn't compile because Unbound Identifier Error (on A).

object Foo {
  val (a, b) = ()
}

Doesn't compile because cannot test if value types are references.

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