Prohibit inner classes in objects
Using inner classes in objects makes little sense since objects have single static instance
This commit is contained in:
@@ -27,12 +27,12 @@ trait K {
|
||||
}
|
||||
|
||||
object N {
|
||||
inner class O
|
||||
<!INNER_CLASS_IN_OBJECT!>inner<!> class O
|
||||
}
|
||||
|
||||
class P {
|
||||
class object {
|
||||
inner class Q
|
||||
<!INNER_CLASS_IN_OBJECT!>inner<!> class Q
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -136,7 +136,7 @@ internal object N {
|
||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||
|
||||
internal final inner class O {
|
||||
internal final class O {
|
||||
public constructor O()
|
||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
@@ -156,7 +156,7 @@ internal final class P {
|
||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||
|
||||
internal final inner class Q {
|
||||
internal final class Q {
|
||||
public constructor Q()
|
||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
|
||||
@@ -5,7 +5,5 @@ annotation class Anno
|
||||
class Class {
|
||||
class object {
|
||||
Anno class Nested
|
||||
|
||||
Anno inner class Inner
|
||||
}
|
||||
}
|
||||
|
||||
@@ -10,10 +10,6 @@ internal final class Class {
|
||||
internal class object Default {
|
||||
/*primary*/ private constructor Default()
|
||||
|
||||
test.Anno() internal final inner class Inner {
|
||||
/*primary*/ public constructor Inner()
|
||||
}
|
||||
|
||||
test.Anno() internal final class Nested {
|
||||
/*primary*/ public constructor Nested()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user