Skip to content

Commit

Permalink
nn
Browse files Browse the repository at this point in the history
  • Loading branch information
robmwalsh committed Jan 20, 2023
1 parent b820d79 commit 2b7f900
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions compiler/src/dotty/tools/dotc/util/Implosion.scala
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ import java.io.{PrintStream, PrintWriter, StringWriter}
* @param cause The exception that caused the crash.
*/
class Implosion private (message: String, val cause: Throwable) extends ControlThrowable:

import runtime.stdLibPatches.Predef.nn
override def toString: String = cause.toString()
override def getCause(): Throwable = cause.getCause()
override def getStackTrace(): Array[StackTraceElement] = cause.getStackTrace()
override def getCause(): Throwable = cause.getCause().nn
override def getStackTrace(): Array[StackTraceElement] = cause.getStackTrace().nn

override def printStackTrace(s: PrintStream): Unit = cause.printStackTrace(s)
override def printStackTrace(s: PrintWriter): Unit = cause.printStackTrace(s)
Expand Down

0 comments on commit 2b7f900

Please sign in to comment.