File tree Expand file tree Collapse file tree 2 files changed +2
-1
lines changed
library/src/scala/tasty/util Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -73,6 +73,7 @@ class ShowSourceCode[T <: Tasty with Singleton](tasty0: T) extends Show[T](tasty
7373 if (flags.isCase) this += " case "
7474
7575 if (flags.isObject) this += " object " += name.stripSuffix(" $" )
76+ else if (flags.isTrait) this += " trait " += name
7677 else this += " class " += name
7778
7879 if (! flags.isObject) {
Original file line number Diff line number Diff line change 11/** Decompiled from out/posTestFromTasty/pos/t0905/Test.class */
22object Test {
3- class A[T]() extends java.lang.Object
3+ trait A[T]() extends java.lang.Object
44 def f(implicit p: Test.A[_ >: scala.Nothing <: scala.Any]): scala.Null = null
55 implicit val x: Test.A[_ >: scala.Nothing <: scala.Any] = null
66 scala.Predef.println(Test.f(Test.x))
You can’t perform that action at this time.
0 commit comments