summaryrefslogtreecommitdiff
path: root/src/main/scala/chisel3/compatibility.scala
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/scala/chisel3/compatibility.scala')
-rw-r--r--src/main/scala/chisel3/compatibility.scala4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/scala/chisel3/compatibility.scala b/src/main/scala/chisel3/compatibility.scala
index 474058be..ad49b095 100644
--- a/src/main/scala/chisel3/compatibility.scala
+++ b/src/main/scala/chisel3/compatibility.scala
@@ -4,7 +4,7 @@
* while moving to the more standard package naming convention `chisel3` (lowercase c).
*/
-package object Chisel { // scalastyle:ignore package.object.name
+package object Chisel { // scalastyle:ignore package.object.name number.of.types number.of.methods
import chisel3.internal.firrtl.Width
import scala.language.experimental.macros
@@ -389,7 +389,7 @@ package object Chisel { // scalastyle:ignore package.object.name
// Deprecated as of Chsiel3
@throws(classOf[Exception])
object throwException {
- def apply(s: String, t: Throwable = null) = {
+ def apply(s: String, t: Throwable = null): Nothing = {
val xcpt = new Exception(s, t)
throw xcpt
}