Skip to content

Commit

Permalink
Use reify { EnumImpl } instead of explicit package
Browse files Browse the repository at this point in the history
  • Loading branch information
mattpap committed Oct 27, 2014
1 parent a0a9995 commit 9b6fd77
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/main/scala/Enum.scala
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ private object EnumImpl {

annottees.map(_.tree) match {
case ModuleDef(mods, name, tpl @ Template(parents, sf, body)) :: Nil =>
val enumImpl = q"org.refptr.iscala.EnumImpl"
val enumImpl = reify { EnumImpl }
val methods = List(
q"final val values: Set[ValueType] = $enumImpl.values[ValueType]",
q"final val fromString: PartialFunction[String, ValueType] = $enumImpl.fromString[ValueType]")
Expand Down

0 comments on commit 9b6fd77

Please sign in to comment.