You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
objecttestextendsApplication {
typeU= (T, Option[T]) forSome { typeT }
valp:U= ("foo", Some("bar"))
p match {
casepp: U=> println(""+pp._1+""+pp._2)
}
}
== What happened ==
Exception in thread "main" scala.MatchError: ((T, Option[T]) forSome { typeT },(?T, Option[?T]))
at scala.tools.nsc.symtab.Types$$class.isConsistent$$0(Types.scala:2734)
at scala.tools.nsc.symtab.Types$$$$anonfun$$63.apply(Types.scala:2747)
at scala.tools.nsc.symtab.Types$$$$anonfun$$63.apply(Types.scala:2746)
at scala.List.forall(List.scala:896)
at scala.tools.nsc.symtab.Types$$class.isPopulated(Types.scala:2746)
at scala.tools.nsc.symtab.SymbolTable.isPopulated(SymbolTable.scala:11)
at scala.tools.nsc.typechecker.Infer$$Inferencer.inferTypedPattern(Infer.scala:980)
at scala.tools.nsc.typechecker.Typers$$Typer.typed1(Typers.scala:2802)
at scala.tools.nsc.typechecker.Typers$$Typer.typed(Typers.scala:2950)
at scala.tools.nsc.typechecker.Typers$$Typer.typedBind$$0(Typers.scala:2023)
at scala.tools.nsc.typechecker.Typers$$Typer.typed1(Typers.scala:2720)
at scala.tools.nsc.typechecker.Typers$$Typer.typed(Typers.scala:2950)
at scala.tools.nsc.typechecker.Typers$$Typer.typedPattern(Typers.scala:3011)
at scala.tools.nsc.typechecker.Typers$$Typer.typedCase(Typers.scala:1329)
at scala.tools.nsc.typechecker.Typers$$Typer$$$$anonfun$$48.apply(Typers.scala:1361)
at scala.tools.nsc.typechecker.Typers$$Typer$$$$anonfun$$48.apply(Typers.scala:1360)
at scala.List$$.loop$$0(List.scala:244)
at scala.List$$.mapConserve(List.scala:261)
at scala.tools.nsc.typechecker.Typers$$Typer.typedCases(Typers.scala:1360)
...
== What expected ==
no crash
More code examples available in [http://scala-webapps.epfl.ch/bugtracking/contribs/display.do?id=744 contrib 744]
The text was updated successfully, but these errors were encountered:
Aladdin: [http://scala-webapps.epfl.ch/bugtracking/contribs/display.do?id=744 contrib 744]
== Code ==
== What happened ==
== What expected ==
no crash
More code examples available in [http://scala-webapps.epfl.ch/bugtracking/contribs/display.do?id=744 contrib 744]
The text was updated successfully, but these errors were encountered: