# \#inheritance

**URL:** https://erlangforums.com/tag/inheritance/932.md

[Latest](https://erlangforums.com/latest.md) · [Categories](https://erlangforums.com/categories.md) · [Tags](https://erlangforums.com/tags.md)

---

## [Recommended way to do somethink like subtyping?](https://erlangforums.com/t/recommended-way-to-do-somethink-like-subtyping/5336)

<div class="topic-metadata">

**Author:** [@jpellegrini](https://erlangforums.com/u/jpellegrini)\
**Replies:** 7\
**Last updated:** [December 25, 2025, 4:58pm UTC](https://erlangforums.com/t/recommended-way-to-do-somethink-like-subtyping/5336 "2025-12-25T16:58:48Z")

</div>

Hello, While researching how to implement subtyping, I was misled by some Artificial Intelligence systems to believe that I can do this: -type person() :: #{name =\> string()}. -type employee() :: person()#{salary =\> …
