File tree Expand file tree Collapse file tree 2 files changed +19
-4
lines changed
library/src/scala/tasty/util Expand file tree Collapse file tree 2 files changed +19
-4
lines changed Original file line number Diff line number Diff line change @@ -869,10 +869,15 @@ class ShowSourceCode[T <: Tasty with Singleton](tasty0: T) extends Show[T](tasty
869869 printRefinement(tpe)
870870
871871 case Type .AppliedType (tp, args) =>
872- printType(tp)
873- this += " ["
874- printTypesOrBounds(args, " , " )
875- this += " ]"
872+ tp match {
873+ case Type .TypeRef (" <repeated>" , Types .ScalaPackage ()) =>
874+ this += " _*"
875+ case _ =>
876+ printType(tp)
877+ this += " ["
878+ printTypesOrBounds(args, " , " )
879+ this += " ]"
880+ }
876881
877882 case Type .AnnotatedType (tp, annot) =>
878883 val Annotation (ref, args) = annot
Original file line number Diff line number Diff line change 1+ /** Decompiled from out/runTestFromTasty/run/t889/Test.class */
2+ object Test extends dotty.runtime.LegacyApp() {
3+ val a: collection.immutable.List[java.lang.String] = scala.List.apply[java.lang.String]("a")
4+ Test.a match {
5+ case scala.Seq("a", "b", rest: _*) =>
6+ scala.Predef.println("a, b, ".+(rest))
7+ case scala.Seq(first, rest: _*) =>
8+ scala.Predef.println("first: ".+(first).+(", rest: ").+(rest))
9+ }
10+ }
You can’t perform that action at this time.
0 commit comments