K2: fix SUPERTYPE_NOT_INITIALIZED not being reported on object expressions ^KT-55597 Fixed
This commit is contained in:
committed by
Space Team
parent
868fe913f1
commit
2a724787f0
@@ -17,6 +17,8 @@ class T : <!NO_VALUE_FOR_PARAMETER, SUPERTYPE_NOT_INITIALIZED!>Foo<!> {}
|
||||
|
||||
object B : <!SINGLETON_IN_SUPERTYPE!>A<!> {}
|
||||
|
||||
val c = <!NO_VALUE_FOR_PARAMETER{LT}!>object : <!NO_VALUE_FOR_PARAMETER{PSI}, SUPERTYPE_NOT_INITIALIZED!>Foo<!> {}<!>
|
||||
|
||||
val x = A.foo()
|
||||
|
||||
val y = object : Foo(x) {
|
||||
|
||||
@@ -17,6 +17,8 @@ object A : <!SUPERTYPE_NOT_INITIALIZED!>Foo<!> {
|
||||
|
||||
object B : <!SINGLETON_IN_SUPERTYPE!>A<!> {}
|
||||
|
||||
val c = object : <!SUPERTYPE_NOT_INITIALIZED!>Foo<!> {}
|
||||
|
||||
val x = A.foo()
|
||||
|
||||
val y = object : Foo(x) {
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
package
|
||||
|
||||
package toplevelObjectDeclarations {
|
||||
public val c: toplevelObjectDeclarations.Foo
|
||||
public val x: kotlin.Int
|
||||
public val y: toplevelObjectDeclarations.Foo
|
||||
public val z: kotlin.Int
|
||||
|
||||
Reference in New Issue
Block a user