[FIR] Introduce shouldNotBeCalled utility function
This commit is contained in:
committed by
Space Team
parent
0b4216c096
commit
aaf0a1f396
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user