ὦ
Size: a a a
ὦ
NV
D
AH
λ
λ
A
DZ
VG
SS
IS
λ
IS
λ
λ
λ
AV
sealed trait Type
object Type {
case object A extends Type
}
case class TestClass[T <: Type](t: T)
private def transfer[T <: Type](from: TestClass[T], to: TestClass[T], value: BigDecimal): (TestClass[T], TestClass[T]) = {
val newFrom = from.copy[T]()
val newTo = to.copy[T]()
(newFrom, newTo)
}
IS
sealed trait Type
object Type {
case object A extends Type
}
case class TestClass[T <: Type](t: T)
private def transfer[T <: Type](from: TestClass[T], to: TestClass[T], value: BigDecimal): (TestClass[T], TestClass[T]) = {
val newFrom = from.copy[T]()
val newTo = to.copy[T]()
(newFrom, newTo)
}
λ
λ