Update diagnostics test for many class objects
This commit is contained in:
@@ -1,10 +1,22 @@
|
|||||||
package Jet86
|
package Jet86
|
||||||
|
|
||||||
class A {
|
class A {
|
||||||
|
<!REDECLARATION!>class object<!> {
|
||||||
|
val x = 1
|
||||||
|
}
|
||||||
|
<!MANY_CLASS_OBJECTS, REDECLARATION!>class object<!> {
|
||||||
|
val x = 1
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
class AA {
|
||||||
class object {
|
class object {
|
||||||
val x = 1
|
val x = 1
|
||||||
}
|
}
|
||||||
<!MANY_CLASS_OBJECTS!>class object<!> { // error
|
<!MANY_CLASS_OBJECTS!>class object A<!> {
|
||||||
|
val x = 1
|
||||||
|
}
|
||||||
|
<!MANY_CLASS_OBJECTS!>class object AA<!> {
|
||||||
val x = 1
|
val x = 1
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -30,6 +30,37 @@ package Jet86 {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
internal final class AA {
|
||||||
|
public constructor AA()
|
||||||
|
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||||
|
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||||
|
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||||
|
|
||||||
|
internal class object A {
|
||||||
|
private constructor A()
|
||||||
|
internal final val x: kotlin.Int = 1
|
||||||
|
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||||
|
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||||
|
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||||
|
}
|
||||||
|
|
||||||
|
internal class object AA {
|
||||||
|
private constructor AA()
|
||||||
|
internal final val x: kotlin.Int = 1
|
||||||
|
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||||
|
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||||
|
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||||
|
}
|
||||||
|
|
||||||
|
internal class object Default {
|
||||||
|
private constructor Default()
|
||||||
|
internal final val x: kotlin.Int = 1
|
||||||
|
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||||
|
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||||
|
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
internal final class B {
|
internal final class B {
|
||||||
public constructor B()
|
public constructor B()
|
||||||
internal final val x: kotlin.Int = 12
|
internal final val x: kotlin.Int = 12
|
||||||
|
|||||||
Reference in New Issue
Block a user