# What does the error "inline value must be pure" mean？

**URL:** <https://contributors.scala-lang.org/t/what-does-the-error-inline-value-must-be-pure-mean/7281>\
**Category:** Compiler\
**Created:** [October 30, 2025, 7:13am UTC](https://contributors.scala-lang.org/t/what-does-the-error-inline-value-must-be-pure-mean/7281 "2025-10-30T07:13:25Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

**Author:** ![odersky](https://contributors.scala-lang.org/user_avatar/contributors.scala-lang.org/odersky/32/42_2.png) [@odersky](https://contributors.scala-lang.org/u/odersky)\
**Post date:** [November 3, 2025, 1:14pm UTC](https://contributors.scala-lang.org/t/what-does-the-error-inline-value-must-be-pure-mean/7281/8 "2025-11-03T13:14:52Z")

</div>

I think we could move the purity test past the inlining phase. That would make the example compile.

---

_[View the full topic](https://contributors.scala-lang.org/t/what-does-the-error-inline-value-must-be-pure-mean/7281)._
