Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash on specialization interop #251

Open
VladUreche opened this issue Oct 26, 2016 · 0 comments
Open

Crash on specialization interop #251

VladUreche opened this issue Oct 26, 2016 · 0 comments

Comments

@VladUreche
Copy link
Member

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant