We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3632171 commit 18c59d8Copy full SHA for 18c59d8
macros/src/main/scala/enumeratum/compat/EnumMacros.scala
@@ -3,7 +3,6 @@ package compat
3
4
import ContextUtils.Context
5
6
-import scala.annotation.nowarn
7
import scala.collection.immutable._
8
import scala.util.control.NonFatal
9
@@ -107,7 +106,7 @@ object EnumMacros {
107
106
import c.universe._
108
val enclosingBodySubClassTrees: List[Tree] =
109
try {
110
- val enclosingModule = (c.enclosingClass: @nowarn) match {
+ val enclosingModule = c.enclosingClass match {
111
case md @ ModuleDef(_, _, _) => md
112
case _ =>
113
c.abort(
0 commit comments