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

specialization regression with overriding #6804

Open
scabug opened this issue Dec 12, 2012 · 3 comments
Open

specialization regression with overriding #6804

scabug opened this issue Dec 12, 2012 · 3 comments

Comments

@scabug
Copy link

scabug commented Dec 12, 2012

I have many doubts as to whether there is any point in continuing to report specialization bugs, but since it's a regression from 2.9...

trait A[@specialized(Byte) T1] {
  def f[@specialized(Float) T2](x: T1, y: T2): Any = 5
}

trait B extends A[Byte] {
  override def f[@specialized(Float) T2](x: Byte, y: T2): String = ""
}
/***
c.scala:6: error: type mismatch;
 found   : Any
 required: String
  override def f[@specialized(Float) T2](x: Byte, y: T2): String = ""
               ^
one error found
***/
@scabug
Copy link
Author

scabug commented Dec 12, 2012

Imported From: https://issues.scala-lang.org/browse/SI-6804?orig=1
Reporter: @paulp
Affected Versions: 2.10.0-RC5
See #5853

@scabug
Copy link
Author

scabug commented Dec 12, 2012

@VladUreche said (edited on Dec 12, 2012 6:37:39 PM UTC):
Yes, it makes sense to report them. If not for immediate fixes in specialization, at least I'll fix them in the miniboxing phase.

@scabug
Copy link
Author

scabug commented Mar 29, 2013

@retronym said:
Regressed in #5853 / scala/scala@dab1d0361

@scabug scabug added this to the Backlog milestone Apr 7, 2017
@scala scala deleted a comment from scabug Mar 2, 2018
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