VarInt
object VarInt
Value members
Concrete fields
final lazy
Runtime representation of VarInt and Int are the same, so the same instance of Integral can be used. Note that summoning and declaration of given must be separated: within this scope VarInt equals Int, hence writing
Runtime representation of VarInt and Int are the same, so the same instance of Integral can be used. Note that summoning and declaration of given must be separated: within this scope VarInt equals Int, hence writing
given Integral[VarInt] = summon[Integral[Int]]
will result in a infinite-recursion by a forward-reference. Note that
val integralInt: Integral[Int] = summon[Integral[Int]]
given Integral[VarInt] = integralInt
also results in a forward-reference and exposes null
as Integral[VarInt]
.