IC: Forbid inner classes inside inline classes

#KT-43067 Fixed
This commit is contained in:
Ilmir Usmanov
2020-11-27 23:44:57 +01:00
parent 15c325cf10
commit 0d55c9108d
13 changed files with 78 additions and 0 deletions
@@ -2,6 +2,7 @@
// WITH_RUNTIME
inline class Z(val x: Int) {
@Suppress("INNER_CLASS_INSIDE_INLINE_CLASS")
inner class Inner(val y: Int) {
val xx = x
}
@@ -2,6 +2,7 @@
// WITH_RUNTIME
inline class Z(val x: Int) {
@Suppress("INNER_CLASS_INSIDE_INLINE_CLASS")
inner class Inner(val z: Z) {
val xx = x
}