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

Manifest synthesis + miniboxing dupl => error #144

Open
VladUreche opened this issue Nov 13, 2014 · 0 comments
Open

Manifest synthesis + miniboxing dupl => error #144

VladUreche opened this issue Nov 13, 2014 · 0 comments

Comments

@VladUreche
Copy link
Member

$ cat gh-bug-H.scala 
package miniboxing.tests.compile.bugH

abstract class Color[@miniboxed Repr: Manifest]
case class ColorEntry[@miniboxed T](r: T, g: T, b: T, a: T)
abstract class FourColor[@miniboxed T: Manifest] extends Color[ColorEntry[T]]

$ ../mb-scalac gh-bug-H.scala

gh-bug-H.scala:5: error: [ occured while creating miniboxed constructor FourColor_D in class FourColor_D ]
type mismatch;
 found   : Class[miniboxing.tests.compile.bugH.ColorEntry[T]](classOf[miniboxing.tests.compile.bugH.ColorEntry])
 required: Class[miniboxing.tests.compile.bugH.ColorEntry[Tsp]]
abstract class FourColor[@miniboxed T: Manifest] extends Color[ColorEntry[T]]
                                                         ^
one error found
@VladUreche VladUreche added the bug label Nov 13, 2014
@VladUreche VladUreche modified the milestones: 0.4, 0.5 Dec 27, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant