Skip to content

Commit 2b7f900

Browse files
committed
nn
1 parent b820d79 commit 2b7f900

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

compiler/src/dotty/tools/dotc/util/Implosion.scala

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@ import java.io.{PrintStream, PrintWriter, StringWriter}
2222
* @param cause The exception that caused the crash.
2323
*/
2424
class Implosion private (message: String, val cause: Throwable) extends ControlThrowable:
25-
25+
import runtime.stdLibPatches.Predef.nn
2626
override def toString: String = cause.toString()
27-
override def getCause(): Throwable = cause.getCause()
28-
override def getStackTrace(): Array[StackTraceElement] = cause.getStackTrace()
27+
override def getCause(): Throwable = cause.getCause().nn
28+
override def getStackTrace(): Array[StackTraceElement] = cause.getStackTrace().nn
2929

3030
override def printStackTrace(s: PrintStream): Unit = cause.printStackTrace(s)
3131
override def printStackTrace(s: PrintWriter): Unit = cause.printStackTrace(s)

0 commit comments

Comments
 (0)