aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeandro Bolivar <leandrob131@gmail.com>2017-11-25 11:44:01 -0500
committerLeandro Bolivar <leandrob131@gmail.com>2017-11-25 11:44:01 -0500
commit615af3df03f9079691f6aec5992671ae2c08dac9 (patch)
tree30b45b73ec3a8c6c314e5d8dd04080e2b90a467e
parent3882602c0f233a6849c4ea5b179fe3c7ef7aadf4 (diff)
downloadmagnolia-615af3df03f9079691f6aec5992671ae2c08dac9.tar.gz
magnolia-615af3df03f9079691f6aec5992671ae2c08dac9.tar.bz2
magnolia-615af3df03f9079691f6aec5992671ae2c08dac9.zip
Minor semantic error
-rw-r--r--core/shared/src/main/scala/magnolia.scala4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/shared/src/main/scala/magnolia.scala b/core/shared/src/main/scala/magnolia.scala
index 4f1c665..375ae6e 100644
--- a/core/shared/src/main/scala/magnolia.scala
+++ b/core/shared/src/main/scala/magnolia.scala
@@ -282,13 +282,13 @@ object Magnolia {
// If a companion object is defined with alternative apply methods
// it is needed get all the alternatives
- val constructorMethod =
+ val constructorMethods =
caseClassCompanion.decl(TermName("apply")).alternatives.map(_.asMethod)
// The last apply method in the alternatives is the one that belongs
// to the case class, not the user defined companion object
val indexedConstructorParams =
- constructorMethod.last.paramLists.head.map(_.asTerm).zipWithIndex
+ constructorMethods.last.paramLists.head.map(_.asTerm).zipWithIndex
indexedConstructorParams.map {
case (p, idx) =>