From 8cbc2c462a3bb43e890685c81f1160f178dbaa71 Mon Sep 17 00:00:00 2001 From: mladens Date: Fri, 1 Dec 2023 09:22:40 +0100 Subject: [PATCH] Mongo typeSwitch to 127 subtypes --- .../src/main/scala/io/sphere/mongo/generic/package.fmpp.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mongo/mongo-derivation/src/main/scala/io/sphere/mongo/generic/package.fmpp.scala b/mongo/mongo-derivation/src/main/scala/io/sphere/mongo/generic/package.fmpp.scala index f9164c73..a6476eb9 100644 --- a/mongo/mongo-derivation/src/main/scala/io/sphere/mongo/generic/package.fmpp.scala +++ b/mongo/mongo-derivation/src/main/scala/io/sphere/mongo/generic/package.fmpp.scala @@ -161,7 +161,7 @@ package object generic extends Logging { def mongoTypeSwitch[T: ClassTag, A1 <: T: ClassTag: MongoFormat](selectors: List[TypeSelector[_]]): MongoFormat[T] = mongoTypeSwitch[T, A1, A1](selectors) - <#list 3..80 as i> + <#list 3..126 as i> <#assign typeParams><#list 1..i-1 as j>A${j}<#if i-1 != j>, <#assign implTypeParams><#list 1..i as j>A${j} <: T : MongoFormat : ClassTag<#if i !=j>, def mongoTypeSwitch[T: ClassTag, ${implTypeParams}](selectors: List[TypeSelector[_]]): MongoFormat[T] = mongoTypeSwitch[T, ${typeParams}](typeSelector[A${i}]() :: selectors)