diff options
author | Mathias <mathias@decodified.com> | 2018-01-05 00:05:34 +0100 |
---|---|---|
committer | Mathias <mathias@decodified.com> | 2018-01-05 13:35:56 +0100 |
commit | f7f7c4e6654e1e961e4d3c6f4eb216ab3e0cad21 (patch) | |
tree | d0efa0b115414dd821845997379376b3427560fc /core | |
parent | c2acc0fd2f4772ea1b6d3a59271fbe2d9063f69f (diff) | |
download | magnolia-f7f7c4e6654e1e961e4d3c6f4eb216ab3e0cad21.tar.gz magnolia-f7f7c4e6654e1e961e4d3c6f4eb216ab3e0cad21.tar.bz2 magnolia-f7f7c4e6654e1e961e4d3c6f4eb216ab3e0cad21.zip |
Fix regression introduced by move to `patchedCompanionRef`
Diffstat (limited to 'core')
-rw-r--r-- | core/shared/src/main/scala/magnolia.scala | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/core/shared/src/main/scala/magnolia.scala b/core/shared/src/main/scala/magnolia.scala index b4179f9..c2fe742 100644 --- a/core/shared/src/main/scala/magnolia.scala +++ b/core/shared/src/main/scala/magnolia.scala @@ -225,11 +225,10 @@ object Magnolia { } val result = if (isCaseObject) { - val obj = GlobalUtil.patchedCompanionRef(c)(genericType) val impl = q""" $typeNameDef ${c.prefix}.combine($magnoliaPkg.Magnolia.caseClass[$typeConstructor, $genericType]( - $typeName, true, false, new $scalaPkg.Array(0), _ => $obj) + $typeName, true, false, new $scalaPkg.Array(0), _ => ${genericType.typeSymbol.asClass.module}) ) """ Some(Typeclass(genericType, impl)) |