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:
Alexander Udalov
2024-02-12 12:43:49 +01:00
committed by Space Team
parent 10dbe73828
commit cf425ffded
10 changed files with 85 additions and 9 deletions
+4
View File
@@ -2,6 +2,10 @@ package kotlin
import kotlin.*
public class NotImplementedError(message: String = "An operation is not implemented.") : Error(message)
public inline fun TODO(): Nothing = throw NotImplementedError()
public inline fun <R> run(block: () -> R): R {
return block()
}