<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/kotlin-reified-explained-no-more-type-erasure--ayvu3z9cr" -->

---
title: Kotlin reified Explained (no more type erasure) | daily.dev
description: Kotlin solves the problem of type erasure at runtime by introducing the 'reified' keyword, which preserves type information. This keyword works in conjunction...
canonical: https://daily.dev/posts/kotlin-reified-explained-no-more-type-erasure--ayvu3z9cr
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Kotlin reified Explained (no more type erasure) | daily.dev
og:description: Kotlin solves the problem of type erasure at runtime by introducing the 'reified' keyword, which preserves type information. This keyword works in conjunction...
og:url: https://daily.dev/posts/kotlin-reified-explained-no-more-type-erasure--ayvu3z9cr
og:image: https://api.daily.dev/og/posts/AyvU3z9CR.png
og:image:alt: Kotlin reified Explained (no more type erasure)
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Kotlin reified Explained (no more type erasure)

**[ProAndroidDev](https://daily.dev/sources/pand)** · 2 min read · 14 upvotes · 0 comments

## Summary

Kotlin solves the problem of type erasure at runtime by introducing the 'reified' keyword, which preserves type information. This keyword works in conjunction with inline functions, allowing code to be moved to the call site and maintaining type information. This approach enables writing more generic and readable algorithms.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://proandroiddev.com/kotlin-reified-explained-no-more-type-erasure-11cad764e725>

---

Tags: [#android](https://daily.dev/tags/android), [#kotlin](https://daily.dev/tags/kotlin), [#spring-boot](https://daily.dev/tags/spring-boot), [#jvm](https://daily.dev/tags/jvm)

[View this post on daily.dev](https://daily.dev/posts/kotlin-reified-explained-no-more-type-erasure--ayvu3z9cr)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Kotlin reified Explained (no more type erasure)","url":"https://daily.dev/posts/kotlin-reified-explained-no-more-type-erasure--ayvu3z9cr","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/kotlin-reified-explained-no-more-type-erasure--ayvu3z9cr"},"datePublished":"2024-07-30T04:52:01.691Z","dateModified":"2024-10-05T18:34:37.939Z","description":"Kotlin solves the problem of type erasure at runtime by introducing the 'reified' keyword, which preserves type information. This keyword works in conjunction...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/f4baedf1b4f7bdd55a764b485660e88f?_a=AQAEuiZ","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/f4baedf1b4f7bdd55a764b485660e88f?_a=AQAEuiZ","isAccessibleForFree":true,"articleSection":"ProAndroidDev","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"ProAndroidDev","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/656c1eb1f1ef4f91936e86fc16545114","url":"https://daily.dev/sources/pand"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/kotlin-reified-explained-no-more-type-erasure--ayvu3z9cr","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":14},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"android,kotlin,spring-boot,jvm","timeRequired":"PT2M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"ProAndroidDev","item":"https://daily.dev/sources/pand"},{"@type":"ListItem","position":3,"name":"Kotlin reified Explained (no more type erasure)"}]}
```

