# Enforcing type equality bound on implicit type parameter

**URL:** <https://users.scala-lang.org/t/enforcing-type-equality-bound-on-implicit-type-parameter/1524>\
**Category:** Question\
**Created:** [August 10, 2017, 1:10pm UTC](https://users.scala-lang.org/t/enforcing-type-equality-bound-on-implicit-type-parameter/1524 "2017-08-10T13:10:59Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

**Author:** ![hmf](https://users.scala-lang.org/user_avatar/users.scala-lang.org/hmf/32/426_2.png) [@hmf](https://users.scala-lang.org/u/hmf)\
**Post date:** [August 11, 2017, 9:30am UTC](https://users.scala-lang.org/t/enforcing-type-equality-bound-on-implicit-type-parameter/1524/8 "2017-08-11T09:30:02Z")

</div>

You are correct in regards to the (lack of) interpretation of the implicit function. I should “name” it to something like `validateDependentVariable`. Thanks for the “solution”. This is basically the same technique suggested by @S11001001 in a [previous thread](https://users.scala-lang.org/t/how-can-we-override-shadow-predef-conforms/1142). Frankly I did not realize I was basically attempting to do the same thing here. BTW appreciate you pointing out the use of AnyVal.

---

_[View the full topic](https://users.scala-lang.org/t/enforcing-type-equality-bound-on-implicit-type-parameter/1524)._
