VarLong
object VarLong
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 VarLong equals Long, 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 VarLong equals Long, hence writing
given Integral[VarLong] = summon[Integral[Long]]
will result in a infinite-recursion by a forward-reference. Note that
val integralLong: Integral[Long] = summon[Integral[Long]]
given Integral[VarInt] = integralLong
also results in a forward-reference and exposes null
as Integral[VarLong]
.