[FIR] Introduce shouldNotBeCalled utility function

This commit is contained in:
Dmitriy Novozhilov
2022-11-25 11:51:02 +02:00
committed by Space Team
parent 0b4216c096
commit aaf0a1f396
8 changed files with 24 additions and 13 deletions
@@ -296,3 +296,7 @@ fun <E> MutableList<E>.popLast(): E = removeAt(lastIndex)
fun <K : Enum<K>, V> enumMapOf(vararg pairs: Pair<K, V>): EnumMap<K, V> = EnumMap(mapOf(*pairs))
fun <T : Enum<T>> enumSetOf(element: T, vararg elements: T): EnumSet<T> = EnumSet.of(element, *elements)
fun shouldNotBeCalled(message: String = "should not be called"): Nothing {
error(message)
}