Skip to content

Show proper unapply signature help  #15126

Closed
@tgodzik

Description

@tgodzik

Compiler version

3.1.2

Minimized code

class Two[A, B](a: A, b: B)
object Two {
  def unapply[A, B](t: Two[A, B]): Option[(A, B)] = None
}

object Main {
  val tp = new Two(1, "") 
  tp match {
    case Two(@@) =>
  }
}

Output

Signature help at @@ is showing

def unapply[A, B](t: Two[A, B]): Option[(A, B)] 
                  ^^^^^^^^^^^

Expectation

(Int, String)
 ^^^

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions