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

call to specialized method fails second time under fsc or REPL #8871

Closed
scabug opened this Issue Sep 30, 2014 · 3 comments

Comments

Projects
None yet
2 participants
@scabug
Copy link

scabug commented Sep 30, 2014

% tail sandbox/{tag,usetag}.scala
==> sandbox/tag.scala <==
object Tag {
  @inline def apply[@specialized A, T](a: A): A = a
}

==> sandbox/usetag.scala <==
trait Foo

object Test {
  val y = Tag[Double, Foo](3.3)
}

% qscalac -version && qscalac sandbox/tag.scala && qscalac -Xresident
Scala compiler version 2.11.3-20140930-174528-a52db7f163 -- Copyright 2002-2013, LAMP/EPFL

nsc> sandbox/usetag.scala

nsc> sandbox/usetag.scala
sandbox/usetag.scala:4: error: wrong number of type parameters for method apply$mDc$sp: [T](a: Double)Double
  val y = Tag[Double, Foo](3.3)
             ^
@scabug

This comment has been minimized.

Copy link

scabug commented Sep 30, 2014

Imported From: https://issues.scala-lang.org/browse/SI-8871?orig=1
Reporter: @retronym
Affected Versions: 2.10.4, 2.11.2
See #4034

@scabug

This comment has been minimized.

Copy link

scabug commented Oct 7, 2014

@retronym said:
Turns out this regressed, or more accurately, was uncovered, by this fix to perRunCaches: scala/scala@00e11ff

@scabug

This comment has been minimized.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment