-
Notifications
You must be signed in to change notification settings - Fork 16
Open
Description
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.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels