Skip to content

Commit

Permalink
format code
Browse files Browse the repository at this point in the history
  • Loading branch information
aymanelamyaghri authored and adpi2 committed Jul 12, 2023
1 parent 1c27f7d commit 43a94fe
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -215,5 +215,5 @@ class ScalaStackTraceTests extends DebugTestSuite {
)

}

}
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,6 @@ class Scala3Unpickler(
case DefaultGetterName(termName, num) => s"${termName.toString()}.<default ${num + 1}>"
case _ => sym.name.toString()


if prefix.isEmpty then symName else s"$prefix.${symName}"

private def isPackageObject(name: Name): Boolean =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,11 @@ abstract class Scala3UnpicklerTests(val scalaVersion: ScalaVersion) extends FunS

unpickler.assertFormat("example.A", "java.lang.String m$default$1()", "A.m.<default 1>: String")
unpickler.assertFormat("example.A", "int m$default$2()", "A.m.<default 2>: Int")
unpickler.assertFormat("example.A$","java.lang.String $lessinit$greater$default$1()","A.<init>.<default 1>: String")
unpickler.assertFormat(
"example.A$",
"java.lang.String $lessinit$greater$default$1()",
"A.<init>.<default 1>: String"
)
unpickler.assertFormat("example.A$", "int $lessinit$greater$default$2()", "A.<init>.<default 2>: Int")
}

Expand Down

0 comments on commit 43a94fe

Please sign in to comment.