Demystifying Kotlin's is Check: How It Outsmarts Type Erasure
Aug 29, 2025 · 3 min read · As a software engineer, you’ve likely heard the rule: on the JVM, generic types are erased at runtime. A List<String> and a List<Int> both become a raw List. This is why a check like myList is List<String> inside a function that accepts List<Any> res...
Join discussion