Simply not true. The whole point of method overloading is to be able to check arguments during compilation. Type assertions are done at runtime.
Solutions Architect @Depop, author of “Hands-on Design Patterns with Kotlin” book and “Web Development with Kotlin” course
Love podcasts or audiobooks? Learn on the go with our new app.