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
Value class method with varargs parameter: crash #6644
Comments
Imported From: https://issues.scala-lang.org/browse/SI-6644?orig=1 |
@adriaanm said: scala.reflect.internal.Types$TypeError: type mismatch;
found : Seq[$line4.$read.$iw.$iw.Matchable.MatchCase[Boolean,Unit]]
required: $line4.$read.$iw.$iw.Matchable.MatchCase[Boolean,Unit]
at scala.tools.nsc.typechecker.Contexts$Context.issueCommon(Contexts.scala:405)
at scala.tools.nsc.typechecker.Contexts$Context.issue(Contexts.scala:409)
at scala.tools.nsc.typechecker.ContextErrors$ErrorUtils$.issueTypeError(ContextErrors.scala:83)
at scala.tools.nsc.typechecker.ContextErrors$ErrorUtils$.issueNormalTypeError(ContextErrors.scala:68)
at scala.tools.nsc.typechecker.ContextErrors$TyperContextErrors$TyperErrorGen$.AdaptTypeError(ContextErrors.scala:174)
at scala.tools.nsc.typechecker.Typers$Typer.fallBack$1(Typers.scala:1248)
at scala.tools.nsc.typechecker.Typers$Typer.adapt(Typers.scala:1253)
at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:5246)
at scala.tools.nsc.interpreter.ReplGlobal$$anon$1$$anon$2.typed(ReplGlobal.scala:28)
at scala.tools.nsc.typechecker.Typers$Typer$$anonfun$51.apply(Typers.scala:2845)
at scala.tools.nsc.typechecker.Typers$Typer$$anonfun$51.apply(Typers.scala:2845)
at scala.tools.nsc.typechecker.Typers$Typer.withCondConstrTyper(Typers.scala:500)
at scala.tools.nsc.typechecker.Typers$Typer.typedArg(Typers.scala:2845)
at scala.tools.nsc.typechecker.Typers$Typer.loop$1(Typers.scala:2872)
at scala.tools.nsc.typechecker.Typers$Typer.typedArgs(Typers.scala:2878)
at scala.tools.nsc.typechecker.Typers$Typer.handleMonomorphicCall$1(Typers.scala:3134)
at scala.tools.nsc.typechecker.Typers$Typer.doTypedApply(Typers.scala:3178)
at scala.tools.nsc.typechecker.Typers$Typer.normalTypedApply$1(Typers.scala:4427)
at scala.tools.nsc.typechecker.Typers$Typer.typedApply$1(Typers.scala:4459)
at scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:5160)
at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:5237)
at scala.tools.nsc.interpreter.ReplGlobal$$anon$1$$anon$2.typed(ReplGlobal.scala:28)
at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:5288)
at scala.tools.nsc.typechecker.Typers$Typer.typedPos(Typers.scala:5293)
at scala.tools.nsc.transform.ExtensionMethods$Extender$$anonfun$transform$2$$anonfun$apply$6.apply(ExtensionMethods.scala:223) |
@adriaanm said (edited on Nov 10, 2012 1:55:17 AM UTC): class Testable(val c: String) extends AnyVal {
def matching(cases: Boolean*): Unit = cases contains true
} |
@adriaanm said: |
@som-snytt said: |
@retronym said: |
Ian Hellstrom (hellstorm) said (edited on May 31, 2016 7:54:03 AM UTC): |
Did not crash with
|
Sorry not minimized. Is there a prize for the first RC2 crasher? I didn't want to miss out for modesty.
There was a different crash in my week-old trunk build. Does it still count?
The text was updated successfully, but these errors were encountered: