Kotlin 1.3-M2 inline class type param error not happening in M1

For the following:

inline class Foo<T>(val v: T)

I get the error:

Inline class cannot have value parameter of type 'T'

How come? This worked just fine in M1. This example is mentioned in the KEEP. Is this just a bug and maybe missing a test case or two? Or am I misunderstanding generics on inline classes?

Currently such generic inline class is prohibited due to unclear design, see https://youtrack.jetbrains.com/issue/KT-26352 for details. The KEEP should be updated though.

1 Like

Thanks! I will continue discussion there…