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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user