# Enable inline classes

**URL:** <https://discuss.kotlinlang.org/t/enable-inline-classes/8521>\
**Category:** Support\
**Created:** [July 11, 2018, 11:36am UTC](https://discuss.kotlinlang.org/t/enable-inline-classes/8521 "2018-07-11T11:36:08Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Wasabi375](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.kotlinlang.org/wasabi375/32/4741_2.png) [@Wasabi375](https://discuss.kotlinlang.org/u/Wasabi375)\
**Post date:** [July 11, 2018, 11:36am UTC](https://discuss.kotlinlang.org/t/enable-inline-classes/8521/1 "2018-07-11T11:36:08Z")

</div>

I know I read it somewhere but I can’t find it. How do I enable inline classes again using gradle. Right now I just get this error

> The feature “inline classes” is experimental and should be enabled explicitly

but I can’t find anywhere how I enable this feature. I guess it is something like you do with coroutines

```auto
kotlin { experimental { coroutines 'enable' } }

```

but I can’t find the required flag for inline classes.

---

<div class="post-metadata">

**Author:** ![Beholder](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.kotlinlang.org/beholder/32/2078_2.png) [@Beholder](https://discuss.kotlinlang.org/u/Beholder)\
**Post date:** [July 11, 2018, 3:13pm UTC](https://discuss.kotlinlang.org/t/enable-inline-classes/8521/2 "2018-07-11T15:13:52Z")

</div>

> [@Kotlin 1.2.60 Early Access Preview](https://discuss.kotlinlang.org/t/kotlin-1-2-60-early-access-preview/8282/3):
>
> Inline classes are actually a feature of an upcoming 1.3 ([Inline classes · Issue #104 · Kotlin/KEEP · GitHub](https://github.com/Kotlin/KEEP/issues/104)), which is being developed in the master branch under a separate compiler argument for simplicity. You can enable the feature with the compiler argument -XXLanguage:+InlineClasses. Note that this will mark your compiled code as “pre-release”, so that it’d be impossible to use it as a library when using “release” Kotlin versions (less than 1.3 at the moment).

---

<div class="post-metadata">

**Author:** ![Wasabi375](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.kotlinlang.org/wasabi375/32/4741_2.png) [@Wasabi375](https://discuss.kotlinlang.org/u/Wasabi375)\
**Post date:** [July 11, 2018, 3:29pm UTC](https://discuss.kotlinlang.org/t/enable-inline-classes/8521/3 "2018-07-11T15:29:12Z")

</div>

mmm. Could have sworn it was already part of 1.2.5. Sadly 1.2.6 does not work with serialization yet so, no luck for me.
