Add Unreachable

This commit is contained in:
Him188 2019-11-16 20:45:54 +08:00
parent 0a286061d0
commit ff0a3d43f5

View File

@ -0,0 +1,7 @@
package net.mamoe.mirai.utils
/**
* 表示这里是不可到达的位置.
*/
@Suppress("NOTHING_TO_INLINE")
internal inline fun assertUnreachable(): Nothing = error("This clause should be reached")