# Better type inference for Scala: send us your problematic cases!

**URL:** <https://contributors.scala-lang.org/t/better-type-inference-for-scala-send-us-your-problematic-cases/2410>\
**Category:** Language Design\
**Created:** [October 4, 2018, 2:50pm UTC](https://contributors.scala-lang.org/t/better-type-inference-for-scala-send-us-your-problematic-cases/2410 "2018-10-04T14:50:46Z")\
**Posts on this page:** 1\
**Showing post:** 30

<div class="post-metadata">

**Author:** ![smarter](https://contributors.scala-lang.org/user_avatar/contributors.scala-lang.org/smarter/32/92_2.png) [@smarter](https://contributors.scala-lang.org/u/smarter)\
**Post date:** [October 5, 2018, 3:38pm UTC](https://contributors.scala-lang.org/t/better-type-inference-for-scala-send-us-your-problematic-cases/2410/30 "2018-10-05T15:38:13Z")

</div>

@gabro That one is tricky since it would mean inferring a less precise type in a somewhat arbitrary way. Instead you can make Color extends Product with Serializable which I concede isn’t very nice either. Alternatively if you use Dotty enums, then the type of the value `Color.Blue` would just be `Color`, which sidesteps the problem.

---

_[View the full topic](https://contributors.scala-lang.org/t/better-type-inference-for-scala-send-us-your-problematic-cases/2410)._
