Skip to content

Crash on specialization interop #251

@VladUreche

Description

@VladUreche

Taken from https://github.com/scala/scala-dev/issues/250, if everything is miniboxed it works:

trait SpecFun[@miniboxed T] {
  type Res
  def res: Res
}

object Test {
  // the symbols for the `op` argument get out of synch
  def m[@miniboxed T](op: SpecFun[T]): op.Res = op.res
}

but if it's half-miniboxed:

trait SpecFun[@miniboxed T] {
  type Res
  def res: Res
}

object Test {
  // the symbols for the `op` argument get out of synch
  def m[@specialized T](op: SpecFun[T]): op.Res = op.res
}

it crashes.

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