Skip to content

Unchecked warning missing when enclosing class type parameter is used as a type argument #9188

@scabug

Description

@scabug
class A[K] {
  def receive: PartialFunction[Any, Unit] = {
    case ds: List[Double] =>  // unchecked warning
      println("* List[Double]")
    case kx: Vector[K] =>      // no unchecked warning
      println("* Vector[K]")
    case ak: A[K] =>          // no unchecked warning
      println("* A[K]")
  }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions