Fix inline class recursion through type parameters

Note that inline class such as
  inline class Id<T>(val x: T)
is prohibited in 1.3.0.
This commit is contained in:
Dmitry Petrov
2018-09-18 17:31:44 +03:00
parent 66b5dd92d9
commit 7ff72e9d90
3 changed files with 46 additions and 11 deletions
@@ -13,4 +13,9 @@ inline class TestNullable(val x: <!INLINE_CLASS_CANNOT_BE_RECURSIVE!>TestNullabl
inline class TestRecursionInTypeArguments(val x: List<TestRecursionInTypeArguments>)
inline class TestRecursionInArray(val x: Array<TestRecursionInArray>)
inline class TestRecursionInArray(val x: Array<TestRecursionInArray>)
inline class TestRecursionInUpperBounds<T : TestRecursionInUpperBounds<T>>(val x: <!INLINE_CLASS_HAS_INAPPLICABLE_PARAMETER_TYPE!>T<!>)
inline class Id<T>(val x: <!INLINE_CLASS_HAS_INAPPLICABLE_PARAMETER_TYPE!>T<!>)
inline class TestRecursionThroughId(val x: Id<TestRecursionThroughId>)