Tests: fix stdlib declarations in IR interpreter test data
Fix some unresolved supertypes. This is necessary to be able to enable IR fake override builder by default (KT-61514), because it traverses all supertypes and asserts that they're classes, so that it can build fake overrides for declarations from there. Without this change, for example `IrFakeOverrideBuilder.buildFakeOverridesForClass` would crash.
This commit is contained in:
committed by
Space Team
parent
10dbe73828
commit
cf425ffded
+1
-1
@@ -12,7 +12,7 @@ internal object EmptyIterator : ListIterator<Nothing> {
|
||||
override fun previous(): Nothing = throw NoSuchElementException()
|
||||
}
|
||||
|
||||
internal object EmptyList : List<Nothing>, Serializable, RandomAccess {
|
||||
internal object EmptyList : List<Nothing>, java.io.Serializable, RandomAccess {
|
||||
private const val serialVersionUID: Long = -7390468764508069838L
|
||||
|
||||
override fun equals(other: Any?): Boolean = other is List<*> && other.isEmpty()
|
||||
|
||||
Reference in New Issue
Block a user