[PL] Make call an exception in case of several inherited implementations

^KT-57701
This commit is contained in:
Pavel Kunyavskiy
2023-05-15 15:01:22 +02:00
committed by Space Team
parent fde8909e6f
commit ee1608ec99
22 changed files with 386 additions and 13 deletions
+4 -3
View File
@@ -24,15 +24,16 @@ sealed interface FailurePattern
private typealias Block<T> = () -> T
enum class TestMode(val isJs: Boolean = false, val isNative: Boolean = false) {
enum class TestMode(val isJs: Boolean = false, val isNative: Boolean = false, val hasCachesEnabled: Boolean = false) {
JS_NO_IC(isJs = true),
JS_WITH_IC(isJs = true),
NATIVE_CACHE_NO(isNative = true),
NATIVE_CACHE_STATIC_ONLY_DIST(isNative = true),
NATIVE_CACHE_STATIC_EVERYWHERE(isNative = true);
NATIVE_CACHE_STATIC_ONLY_DIST(isNative = true, hasCachesEnabled = true),
NATIVE_CACHE_STATIC_EVERYWHERE(isNative = true, hasCachesEnabled = true);
init {
check(isJs xor isNative)
check(isNative || !hasCachesEnabled)
}
}