IC: Forbid inner classes inside inline classes
#KT-43067 Fixed
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Vendored
+1
@@ -12,6 +12,7 @@ class Outer(val z1: Z) {
|
||||
}
|
||||
|
||||
inline class InlineOuter(val z1: Z) {
|
||||
@Suppress("INNER_CLASS_INSIDE_INLINE_CLASS")
|
||||
inner class Inner(val z2: Z) {
|
||||
val test = "$z1 $z2"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user