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
73
73
if (flags.isCase) this += " case "
74
74
75
75
if (flags.isObject) this += " object " += name.stripSuffix(" $" )
76
+ else if (flags.isTrait) this += " trait " += name
76
77
else this += " class " += name
77
78
78
79
if (! flags.isObject) {
Original file line number Diff line number Diff line change 1
1
/** Decompiled from out/posTestFromTasty/pos/t0905/Test.class */
2
2
object Test {
3
- class A[T]() extends java.lang.Object
3
+ trait A[T]() extends java.lang.Object
4
4
def f(implicit p: Test.A[_ >: scala.Nothing <: scala.Any]): scala.Null = null
5
5
implicit val x: Test.A[_ >: scala.Nothing <: scala.Any] = null
6
6
scala.Predef.println(Test.f(Test.x))
You can’t perform that action at this time.
0 commit comments