This commit is contained in:
dmitry.shakhtarin 2018-09-08 20:22:16 +03:00
parent 275fcfd25c
commit 3c0d3599d1

View File

@ -36,9 +36,9 @@ sealed trait LowPriorityDataVyperImplicits {
data.toDataVyper :: Nil data.toDataVyper :: Nil
} }
implicit def funcDefDataVyper[Args <: HList, Ret <: types.Type]: DataVyper[FuncDef[Args, Ret]] = implicit def funcDefDataVyper[Args <: HList, Ret <: types.Type, Params <: HList]: DataVyper[FuncDef[Args, Ret, Params]] =
new DataVyper[FuncDef[Args, Ret]] { new DataVyper[FuncDef[Args, Ret, Params]] {
override def toVyperDefinitions(func: FuncDef[Args, Ret]): List[String] = override def toVyperDefinitions(func: FuncDef[Args, Ret, Params]): List[String] =
func.toVyper :: Nil func.toVyper :: Nil
} }