DirectMatch

data object DirectMatch : CastResult

Properties

Link copied to clipboard
open 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.