Skip to content

Commit

Permalink
Merge pull request #59 from xuwei-k/extends-Product
Browse files Browse the repository at this point in the history
GeneratedEnum and GeneratedOneof extends Product
  • Loading branch information
thesamet committed Nov 27, 2015
2 parents 330dcc7 + 0b00404 commit 7c3b999
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import scala.collection.JavaConversions._

import scala.util.Try

trait GeneratedEnum extends Serializable {
trait GeneratedEnum extends Product with Serializable {
type EnumType <: GeneratedEnum

def value: Int
Expand All @@ -31,7 +31,7 @@ trait GeneratedEnumCompanion[A <: GeneratedEnum] {
def descriptor: EnumDescriptor
}

trait GeneratedOneof extends Serializable {
trait GeneratedOneof extends Product with Serializable {
def number: Int
}

Expand Down

0 comments on commit 7c3b999

Please sign in to comment.