I am new to Kotlin. I would like to know, How Kotlin finds data type without specifying it explicitly by using type interface. How does Type interface works internally in Kotlin
Type Interface
darksnake
#2
Not sure that it is possible to decipher what you actually trying to ask from this description. Could you provide a code or at least class reference for the thing you are asking about?
If u refer this link https://code.tutsplus.com/tutorials/kotlin-from-scratch-variables-basic-types-arrays-type-inference-and-comments--cms-29328, there is something called TypeInterface in Kotlin. I m quite inquisitive over the underlying working of TypeInterface. How they are able to find the datatype implicity using Typeinterface?.