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
Compiling a file with type = (tuple with more than 22 fields) causes the compiler to crash. I've attached a simple scalatest test.
Here is top of the stack trace:
java.lang.AssertionError: assertion failed: scala.
at scala.reflect.internal.Trees$AppliedTypeTree.(Trees.scala:579)
at scala.reflect.internal.TreeGen.mkTupleType(TreeGen.scala:293)
at scala.tools.nsc.ast.parser.TreeBuilder.makeTupleType(TreeBuilder.scala:44)
at scala.tools.nsc.ast.parser.Parsers$Parser$PatternContextSensitive$class.scala$tools$nsc$ast$parser$Parsers$Parser$PatternContextSensitive$$tupleInfixType(Parsers.scala:873)
at scala.tools.nsc.ast.parser.Parsers$Parser$PatternContextSensitive$$anonfun$typ$1.apply(Parsers.scala:906)
at scala.tools.nsc.ast.parser.Parsers$Parser$PatternContextSensitive$$anonfun$typ$1.apply(Parsers.scala:903)
at scala.tools.nsc.ast.parser.Parsers$Parser.placeholderTypeBoundary(Parsers.scala:485)
at scala.tools.nsc.ast.parser.Parsers$Parser$PatternContextSensitive$class.typ(Parsers.scala:903)
at scala.tools.nsc.ast.parser.Parsers$Parser$outPattern$.typ(Parsers.scala:1993)
at scala.tools.nsc.ast.parser.Parsers$Parser.typ(Parsers.scala:2013)
at scala.tools.nsc.ast.parser.Parsers$Parser.typeDefOrDcl(Parsers.scala:2679)
at scala.tools.nsc.ast.parser.Parsers$Parser.defOrDcl(Parsers.scala:2463)
at scala.tools.nsc.ast.parser.Parsers$Parser.nonLocalDefOrDcl(Parsers.scala:2473)
at scala.tools.nsc.ast.parser.Parsers$Parser$$anonfun$templateStat$1$$anonfun$applyOrElse$3.apply(Parsers.scala:3030)
at scala.tools.nsc.ast.parser.Parsers$Parser$$anonfun$templateStat$1$$anonfun$applyOrElse$3.apply(Parsers.scala:3030)
The text was updated successfully, but these errors were encountered:
$ ../scala/build/quick/bin/scalac BigTupleSpec.scala
BigTupleSpec.scala:7:error: too many elements fortuple: 23, allowed: 22typeBig= (
^
BigTupleSpec.scala:17:error: too many elements fortuple: 23, allowed: 22valfoo:Big= (
^
two errors found
Compiling a file with type = (tuple with more than 22 fields) causes the compiler to crash. I've attached a simple scalatest test.
Here is top of the stack trace:
java.lang.AssertionError: assertion failed: scala.
at scala.reflect.internal.Trees$AppliedTypeTree.(Trees.scala:579)
at scala.reflect.internal.TreeGen.mkTupleType(TreeGen.scala:293)
at scala.tools.nsc.ast.parser.TreeBuilder.makeTupleType(TreeBuilder.scala:44)
at scala.tools.nsc.ast.parser.Parsers$Parser$PatternContextSensitive$class.scala$tools$nsc$ast$parser$Parsers$Parser$PatternContextSensitive$$tupleInfixType(Parsers.scala:873)
at scala.tools.nsc.ast.parser.Parsers$Parser$PatternContextSensitive$$anonfun$typ$1.apply(Parsers.scala:906)
at scala.tools.nsc.ast.parser.Parsers$Parser$PatternContextSensitive$$anonfun$typ$1.apply(Parsers.scala:903)
at scala.tools.nsc.ast.parser.Parsers$Parser.placeholderTypeBoundary(Parsers.scala:485)
at scala.tools.nsc.ast.parser.Parsers$Parser$PatternContextSensitive$class.typ(Parsers.scala:903)
at scala.tools.nsc.ast.parser.Parsers$Parser$outPattern$.typ(Parsers.scala:1993)
at scala.tools.nsc.ast.parser.Parsers$Parser.typ(Parsers.scala:2013)
at scala.tools.nsc.ast.parser.Parsers$Parser.typeDefOrDcl(Parsers.scala:2679)
at scala.tools.nsc.ast.parser.Parsers$Parser.defOrDcl(Parsers.scala:2463)
at scala.tools.nsc.ast.parser.Parsers$Parser.nonLocalDefOrDcl(Parsers.scala:2473)
at scala.tools.nsc.ast.parser.Parsers$Parser$$anonfun$templateStat$1$$anonfun$applyOrElse$3.apply(Parsers.scala:3030)
at scala.tools.nsc.ast.parser.Parsers$Parser$$anonfun$templateStat$1$$anonfun$applyOrElse$3.apply(Parsers.scala:3030)
The text was updated successfully, but these errors were encountered: