ImplicitCast

data class ImplicitCast(var depthDistance: Int) : CastResult

Constructors

Link copied to clipboard
constructor(depthDistance: Int)

Types

Link copied to clipboard

Properties

Link copied to clipboard
open override var depthDistance: Int

The "distance" from the base type to the target type that is needed when this object needs to be cast. For example, if the types are the same, the distance is 0. An implicit cast is 1. The distance from a derived class to its direct super class is also 1. It increments for each super class in the hierarchy.